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.

20 lines • 715 B
/** * Whether this id already passed `isValidTimeZone`. * * @param timeZone the identifier * @returns `true` for an id remembered as valid * * @example isRememberedZone("Europe/London") // false until `rememberZone("Europe/London")` */ export declare function isRememberedZone(timeZone: string): boolean; /** * Remember an id that passed. Only a pass is stored, so hostile strings cannot grow the set; * past 1,024 ids the set clears. * * @param timeZone the identifier that passed * * @example rememberZone("Europe/London") // stores it */ export declare function rememberZone(timeZone: string): void; /** Test seam: forget every remembered id. */ export declare function clearValidatedZones(): void;