MCPcopy
hub / github.com/formatjs/formatjs / isTimeFormatOnly

Function isTimeFormatOnly

packages/intl-datetimeformat/scripts/extract-dates.ts:50–60  ·  view source on GitHub ↗
(opts: Intl.DateTimeFormatOptions)

Source from the content-addressed store, hash-verified

48}
49
50function isTimeFormatOnly(opts: Intl.DateTimeFormatOptions) {
51 return !Object.keys(opts).find(
52 k =>
53 k === 'year' ||
54 k === 'era' ||
55 k === 'month' ||
56 k === 'day' ||
57 k === 'weekday' ||
58 k === 'quarter'
59 )
60}
61
62export function getAllLocales(): string[] {
63 return globSync('*/ca-gregorian.json', {

Callers 1

loadDatesFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected