date-fns
Version:
Modern JavaScript date utility library
11 lines • 310 B
JavaScript
var formatRelativeLocale = {
lastWeek: "'last' eeee 'at' p",
yesterday: "'yesterday at' p",
today: "'today at' p",
tomorrow: "'tomorrow at' p",
nextWeek: "eeee 'at' p",
other: 'P'
};
export default function formatRelative(token, _date, _baseDate, _options) {
return formatRelativeLocale[token];
}