UNPKG

date-fns

Version:

Modern JavaScript date utility library

12 lines (10 loc) 303 B
const formatRelativeLocale = { lastWeek: "'afgelopen' eeee 'om' p", yesterday: "'gisteren om' p", today: "'vandaag om' p", tomorrow: "'morgen om' p", nextWeek: "eeee 'om' p", other: "P", }; export const formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];