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

Function formatRelative

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

Source from the content-addressed store, hash-verified

71};
72
73export const formatRelative: FormatRelativeFn = (
74 token,
75 date,
76 baseDate,
77 options,
78) => {
79 const format = formatRelativeLocale[token];
80
81 if (typeof format === "function") {
82 return format(token, date, baseDate, options);
83 }
84
85 return format;
86};

Callers

nothing calls this directly

Calls 1

formatFunction · 0.50

Tested by

no test coverage detected