Skip to content

getTimeZones

getTimeZones(): string[]
import { getTimeZones } from "@northguild/gmt/zoned/get";

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).

array of IANA timezone identifier strings, or [] on failure

getTimeZones() // ["America/New_York", "Europe/London", ...]
getTimeZones().length // ~422 (varies by runtime/ICU)

zoned/get/getTimeZones.ts