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