UNPKG

@burglekitt/gmt

Version:

Temporal-based date and time utilities with timezone support and polyfill integration

13 lines (12 loc) 477 B
/** * Return the array of all available IANA timezone identifiers. * * - Uses `Intl.supportedValuesOf('timeZone')` to get the full list. * - Returns `[]` when the API is unavailable (older runtimes). * * @returns array of IANA timezone identifier strings, or `[]` on failure * * @example getTimeZones() // ["America/New_York", "Europe/London", ...] * @example getTimeZones().length // ~422 (varies by runtime/ICU) */ export declare function getTimeZones(): string[];