UNPKG

date-fns

Version:

Modern JavaScript date utility library

11 lines 315 B
var formatRelativeLocale = { lastWeek: '[last] dddd [at] LT', yesterday: '[yesterday at] LT', today: '[today at] LT', tomorrow: '[tomorrow at] LT', nextWeek: 'dddd [at] LT', other: 'L' }; export default function formatRelative(token, _date, _baseDate, _options) { return formatRelativeLocale[token]; }