Intl.Locale.prototype.timeZones

The Intl.Locale.prototype.timeZones accessor property returns a list of supported time zones for the Locale.

Description

Returns an array with supported time zones for the associated Locale, where each value is an IANA time zone canonical name, sorted in alphabetical order. If the locale identifier does not contain a region subtag, the returned value is undefined.

Examples

Obtaining supported time zones

List supported time zones for a given Locale.

const arEG = new Intl.Locale("ar-EG");
console.log(arEG.timeZones); // ["Africa/Cairo"]
const jaJP = new Intl.Locale("ja-JP");
console.log(jaJP.timeZones); // ["Asia/Tokyo"]
const ar = new Intl.Locale("ar");
console.log(ar.timeZones); // undefined

Specifications

Specification
Intl Locale Info Proposal
# sec-Intl.Locale.prototype.timeZones

Browser compatibility

BCD tables only load in the browser

See also