Intl.Locale.prototype.getTimeZones()
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Intl.Locale ì¸ì¤í´ì¤ì getTimeZones() ë©ìëë ì´ ë¡ì¼ì¼ì ì§ìëë ìê°ë 목ë¡ì ë°íí©ëë¤.
ì°¸ê³ :
ì¼ë¶ ë¸ë¼ì°ì ì ì¼ë¶ ë²ì ììë ì´ ë©ìëê° timeZonesë¼ë ì ê·¼ì ìì±ì¼ë¡ 구íëììµëë¤. ê·¸ë¬ë ì´ ë©ìëë ì ê·¼í ëë§ë¤ ìë¡ì´ ë°°ì´ì ë°íí기 ë문ì locale.timeZones === locale.timeZonesê° false를 ë°ííë ìí©ì ë°©ì§í기 ìí´ ì´ì ë©ìëë¡ êµ¬íëììµëë¤. ìì¸í ë´ì©ì ë¸ë¼ì°ì í¸íì± í를 참조íì¸ì.
구문
getTimeZones()
매ê°ë³ì
ìì.
ë°í ê°
ì°ê²°ë Localeì ëí´ ì§ìëë ìê°ë를 ëíë´ë 문ìì´ ë°°ì´ë¡, ê° ê°ì ìíë²³ ììë¡ ì ë ¬ë IANA íì¤ ìê°ë ì´ë¦ì
ëë¤. ë¡ì¼ì¼ ìë³ìì ì§ì íì íê·¸ê° í¬í¨ëì§ ìì ê²½ì° ë°íëë ê°ì undefinedì
ëë¤.
ìì
>ì§ìëë ìê°ë ì»ê¸°
주ì´ì§ Localeì ì§ìíë ìê°ë 목ë¡.
const arEG = new Intl.Locale("ar-EG");
console.log(arEG.getTimeZones()); // ["Africa/Cairo"]
const jaJP = new Intl.Locale("ja-JP");
console.log(jaJP.getTimeZones()); // ["Asia/Tokyo"]
const ar = new Intl.Locale("ar");
console.log(ar.getTimeZones()); // undefined
ëª ì¸ì
| Specification |
|---|
| Intl Locale Info Proposal> # sec-Intl.Locale.prototype.getTimeZones> |
ë¸ë¼ì°ì í¸íì±
ê°ì´ 보기
Intl.Locale- Wikipediaì IANA ìê°ë ë°ì´í°ë² ì´ì¤