date-fns
Version:
Modern JavaScript date utility library
12 lines (10 loc) • 365 B
JavaScript
const formatRelativeLocale = {
lastWeek: "'গত' eeee 'সময়' p",
yesterday: "'গতকাল' 'সময়' p",
today: "'আজ' 'সময়' p",
tomorrow: "'আগামীকাল' 'সময়' p",
nextWeek: "eeee 'সময়' p",
other: "P",
};
export const formatRelative = (token, _date, _baseDate, _options) =>
formatRelativeLocale[token];