UNPKG

date-fns

Version:

Modern JavaScript date utility library

11 lines 323 B
var formatRelativeLocale = { lastWeek: "'viime' eeee 'klo' p", yesterday: "'eilen klo' p", today: "'tänään klo' p", tomorrow: "'huomenna klo' p", nextWeek: "'ensi' eeee 'klo' p", other: 'P' }; export default function formatRelative(token, _date, _baseDate, _options) { return formatRelativeLocale[token]; }