Skip to content

getTimeZones

getTimeZones(): string[]

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

import { getTimeZones } from "@northguild/gmt/zoned/get";
getTimeZones() // ["America/New_York", "Europe/London", ...]
output 

zoned/get/getTimeZones.ts