Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/date-fns/date-fns
/ formatRelative
Function
formatRelative
pkgs/core/src/locale/hu/_lib/formatRelative/index.ts:29–37 ·
view source on GitHub ↗
(token, date)
Source
from the content-addressed store, hash-verified
27
};
28
29
export
const
formatRelative: FormatRelativeFn = (token, date) => {
30
const
format = formatRelativeLocale[token];
31
32
if
(typeof format ===
"function"
) {
33
return
format(date);
34
}
35
36
return
format;
37
};
Callers
nothing calls this directly
Calls
1
format
Function · 0.50
Tested by
no test coverage detected