MCPcopy
hub / github.com/date-fns/date-fns / formatRelative

Function formatRelative

pkgs/core/src/locale/kk/_lib/formatRelative/index.ts:67–80  ·  view source on GitHub ↗
(
  token,
  date,
  baseDate,
  options,
)

Source from the content-addressed store, hash-verified

65};
66
67export const formatRelative: FormatRelativeFn = (
68 token,
69 date,
70 baseDate,
71 options,
72) => {
73 const format = formatRelativeLocale[token];
74
75 if (typeof format === "function") {
76 return format(date, baseDate, options);
77 }
78
79 return format;
80};

Callers

nothing calls this directly

Calls 1

formatFunction · 0.50

Tested by

no test coverage detected