listTimezones
Returns the list of IANA timezone identifiers supported by the runtime.
Wraps Intl.supportedValuesOf('timeZone') which is available in
Node 18+, Chrome 93+, Firefox 93+, Safari 15.4+.
Available since v2.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Returns
Section titled “Returns”string[] — An array of IANA timezone strings (e.g. ['Africa/Abidjan', …, 'US/Pacific'])
Examples
Section titled “Examples”listTimezones
Section titled “listTimezones”Related Types
Section titled “Related Types”FormatInTimezoneOptions
Section titled “FormatInTimezoneOptions”Options for formatInTimezone.
