MCPcopy
hub / github.com/MALSync/MALSync / getDateTimeText

Method getDateTimeText

src/utils/IntlWrapper.ts:259–262  ·  view source on GitHub ↗
(options: Intl.DateTimeFormatOptions = { dateStyle: 'medium' })

Source from the content-addressed store, hash-verified

257 }
258
259 getDateTimeText(options: Intl.DateTimeFormatOptions = { dateStyle: 'medium' }) {
260 if (!isValidDate(this.date)) return '';
261 return new Intl.DateTimeFormat(this.locale, options).format(this.date);
262 }
263
264 getRelativeNowText(style: DurationStyle = 'Duration', options?: DurationFormatOptions) {
265 if (!this.isValidDate()) return '';

Callers 8

getDateTimeRangeTextMethod · 0.80
reviewMetaFunction · 0.80
infoMethod · 0.80
infoMethod · 0.80
infoMethod · 0.80
infoMethod · 0.80
reviewsMethod · 0.80

Calls 2

isValidDateFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected