Intl.Locale.prototype.timeZones
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Intl.Locale.prototype.timeZones プロパティはアクセサープロパティで、選択した Locale で対応しているタイムゾーンの配列を返します。
解説
関連付けられた Locale で対応しているタイムゾーンを配列で返します。返されるタイムゾーンは IANA タイムゾーン を表します。
メモ:
Unicode 言語識別子が Unicode 地域サブタグシーケンスの - を含んでいない場合、返される値は undefined です。
例
対応しているタイムゾーンの取得
指定された Locale で対応しているタイムゾーンをリストアップします。
仕様書
| Specification |
|---|
| Intl Locale Info Proposal # sec-Intl.Locale.prototype.getTimeZones |