UNPKG

date-fns

Version:

Modern JavaScript date utility library

12 lines (10 loc) 283 B
const formatRelativeLocale = { lastWeek: "'Praėjusį' eeee p", yesterday: "'Vakar' p", today: "'Šiandien' p", tomorrow: "'Rytoj' p", nextWeek: "eeee p", other: "P", }; export const formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];