The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/lib/utils/timestamp/formats.ts

39 lines
959 B

import type { TimestampFormat, ITimestampFormatConfig } from './types';
export const TIMESTAMP_FORMATS: Record<TimestampFormat, ITimestampFormatConfig> = {
t: {
label: 'timestamps.shortTime',
format: 'p',
description: 'timestamps.shortTimeDescription',
},
T: {
label: 'timestamps.longTime',
format: 'pp',
description: 'timestamps.longTimeDescription',
},
d: {
label: 'timestamps.shortDate',
format: 'P',
description: 'timestamps.shortDateDescription',
},
D: {
label: 'timestamps.longDate',
format: 'Pp',
description: 'timestamps.longDateDescription',
},
f: {
label: 'timestamps.fullDateTime',
format: 'PPPppp',
description: 'timestamps.fullDateTimeDescription',
},
F: {
label: 'timestamps.fullDateTimeLong',
format: 'PPPPpppp',
description: 'timestamps.fullDateTimeLongDescription',
},
R: {
label: 'timestamps.relativeTime',
format: 'relative',
description: 'timestamps.relativeTimeDescription',
},
};