UNPKG

@northguild/gmt

Version:

Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.

11 lines • 861 B
/** The options that make a formatter print time. */ export declare const TIME_KEYS: readonly ["hour", "minute", "second", "fractionalSecondDigits", "dayPeriod", "timeZoneName", "timeStyle"]; /** The options that give a formatter a date pattern. */ export declare const DATE_KEYS: readonly ["era", "year", "month", "day", "weekday", "dateStyle"]; /** * The verdict-cache key: the pattern, never the zone (a zone moves the instant, not the pattern). * Only the options that choose the pattern are read; locale, calendar, numbering system and hour * cycle come from what the formatter resolved, so a value `Intl` ignores or resolves to the same * thing (`calendar: "always"`, `hour12` next to an `hourCycle`) shares one verdict. */ export declare function verdictKey(options: Intl.DateTimeFormatOptions, resolved: Intl.ResolvedDateTimeFormatOptions): string;