View Source Cldr.Timezone (Cldr v2.39.2)
Functions to map between the CLDR short time zone code and the IANA timezone names.
The Unicode locale extension U allows the specification of the time zone requested for the provided locale.
This short timezone codes never change even if the IANA names change over time. Therefore these short codes are always stable between CLDR releases.
Summary
Functions
Returns a :{:ok, list}
where list is a
list of IANA timezone names for
a given CLDR short zone code. If no such
short code exists then :error
is returned.
Returns a list of IANA time zone names for
a given CLDR short zone code, or nil
Returns a mapping of CLDR short zone codes to IANA timezone names.
Returns a mapping of territories to their known IANA timezone names.
Functions
Returns a :{:ok, list}
where list is a
list of IANA timezone names for
a given CLDR short zone code. If no such
short code exists then :error
is returned.
Example
iex> Cldr.Timezone.fetch("ausyd")
{:ok,
["Australia/Sydney", "Australia/ACT", "Australia/Canberra", "Australia/NSW"]}
iex> Cldr.Timezone.fetch("nope")
:error
Returns a list of IANA time zone names for
a given CLDR short zone code, or nil
Examples
iex> Cldr.Timezone.fetch("ausyd")
["Australia/Sydney", "Australia/ACT", "Australia/Canberra", "Australia/NSW"]}
iex> Cldr.Timezone.fetch("nope")
nil
Returns a mapping of CLDR short zone codes to IANA timezone names.
@spec timezones_for_territory() :: %{ KW: [String.t(), ...], UA: [String.t(), ...], GP: [String.t(), ...], GY: [String.t(), ...], AR: [String.t(), ...], NE: [String.t(), ...], AQ: [String.t(), ...], JE: [String.t(), ...], IT: [String.t(), ...], GB: [String.t(), ...], LC: [String.t(), ...], SI: [String.t(), ...], EG: [String.t(), ...], MZ: [String.t(), ...], BH: [String.t(), ...], TO: [String.t(), ...], SK: [String.t(), ...], BI: [String.t(), ...], ES: [String.t(), ...], SZ: [String.t(), ...], MG: [String.t(), ...], MX: [String.t(), ...], ER: [String.t(), ...], VC: [String.t(), ...], AE: [String.t(), ...], LV: [String.t(), ...], IE: [String.t(), ...], CO: [String.t(), ...], GU: [String.t(), ...], PS: [String.t(), ...], IM: [String.t(), ...], JM: [String.t(), ...], RO: [String.t(), ...], TC: [String.t(), ...], LT: [String.t(), ...], SO: [String.t(), ...], HR: [String.t(), ...], AF: [String.t(), ...], GF: [String.t(), ...], TJ: [String.t(), ...], BB: [String.t(), ...], AT: [String.t(), ...], CV: [String.t(), ...], CA: [String.t(), ...], BJ: [String.t(), ...], TV: [String.t(), ...], SB: [String.t(), ...], ST: [String.t(), ...], CC: [String.t(), ...], PG: [String.t(), ...], TH: [String.t(), ...], TG: [String.t(), ...], LS: [String.t(), ...], AO: [String.t(), ...], PF: [String.t(), ...], PW: [String.t(), ...], CN: [String.t(), ...], MH: [String.t(), ...], VU: [String.t(), ...], KY: [String.t(), ...], KH: [String.t(), ...], SM: [String.t(), ...], GM: [String.t(), ...], FR: [String.t(), ...], BG: [String.t(), ...], BS: [String.t(), ...], MV: [String.t(), ...], TZ: [String.t(), ...], GW: [String.t(), ...], ET: [String.t(), ...], NA: [String.t(), ...], DM: [String.t(), ...], BY: [String.t(), ...], NU: [String.t(), ...], RS: [String.t(), ...], SS: [String.t(), ...], EH: [String.t(), ...], PL: [String.t(), ...], NF: [String.t(), ...], MR: [String.t(), ...], DO: [String.t(), ...], SD: [String.t(), ...], GG: [String.t(), ...], LR: [String.t(), ...], FI: [String.t(), ...], GE: [String.t(), ...], ID: [String.t(), ...], BO: [String.t(), ...], UN: [String.t(), ...], KR: [String.t(), ...], FO: [String.t(), ...], ME: [String.t(), ...], UZ: [String.t(), ...], MP: [String.t(), ...], GD: [String.t(), ...], IS: [String.t(), ...], AD: [String.t(), ...], WF: [String.t(), ...], IO: [String.t(), ...], VN: [String.t(), ...], PY: [String.t(), ...], TT: [String.t(), ...], BQ: [String.t(), ...], TL: [String.t(), ...], MK: [String.t(), ...], UY: [String.t(), ...], PM: [String.t(), ...], CL: [String.t(), ...], NG: [String.t(), ...], NI: [String.t(), ...], CG: [String.t(), ...], BZ: [String.t(), ...], EC: [String.t(), ...], CF: [String.t(), ...], SJ: [String.t(), ...], PK: [String.t(), ...], MQ: [String.t(), ...], CD: [String.t(), ...], SG: [String.t(), ...], PT: [String.t(), ...], BM: [String.t(), ...], NR: [String.t(), ...], LI: [String.t(), ...], RU: [String.t(), ...], BW: [String.t(), ...], LU: [String.t(), ...], BE: [String.t(), ...], EE: [String.t(), ...], DE: [String.t(), ...], TD: [String.t(), ...], GH: [String.t(), ...], CU: [String.t(), ...], UM: [String.t(), ...], MU: [String.t(), ...], WS: [String.t(), ...], ZW: [String.t(), ...], CK: [String.t(), ...], RE: [String.t(), ...], BD: [String.t(), ...], BA: [String.t(), ...], SE: [String.t(), ...], PE: [String.t(), ...], OM: [String.t(), ...], BR: [String.t(), ...], SN: [String.t(), ...], AZ: [String.t(), ...], IQ: [String.t(), ...], IR: [String.t(), ...], ZA: [String.t(), ...], NZ: [String.t(), ...], NO: [String.t(), ...], CY: [String.t(), ...], GN: [String.t(), ...], TK: [String.t(), ...], AS: [String.t(), ...], TN: [String.t(), ...], DZ: [String.t(), ...], LY: [String.t(), ...], LB: [String.t(), ...], YE: [String.t(), ...], KI: [String.t(), ...], JP: [String.t(), ...], GR: [String.t(), ...], PA: [String.t(), ...], GS: [String.t(), ...], QA: [String.t(), ...], KP: [String.t(), ...], MA: [String.t(), ...], CW: [String.t(), ...], SA: [String.t(), ...], TW: [String.t(), ...], BF: [String.t(), ...], GA: [String.t(), ...], GL: [String.t(), ...], HK: [String.t(), ...], VI: [String.t(), ...], ML: [String.t(), ...], KE: [String.t(), ...], FM: [String.t(), ...], NL: [String.t(), ...], MS: [String.t(), ...], SL: [String.t(), ...], MO: [String.t(), ...], BT: [String.t(), ...], CR: [String.t(), ...], DJ: [String.t(), ...], US: [String.t(), ...], VE: [String.t(), ...], CX: [String.t(), ...], SC: [String.t(), ...], FK: [String.t(), ...], FJ: [String.t(), ...], HU: [String.t(), ...], YT: [String.t(), ...], HT: [String.t(), ...], GT: [String.t(), ...], MM: [String.t(), ...], CH: [String.t(), ...], AI: [String.t(), ...], CI: [String.t(), ...], KZ: [String.t(), ...], HN: [String.t(), ...], NC: [String.t(), ...], AU: [String.t(), ...], KG: [String.t(), ...], MT: [String.t(), ...], MC: [String.t(), ...], NP: [String.t(), ...], KN: [String.t(), ...], CM: [String.t(), ...], TF: [String.t(), ...], AL: [String.t(), ...], MD: [String.t(), ...], SY: [String.t(), ...], PH: [String.t(), ...], GQ: [String.t(), ...], TM: [String.t(), ...], DK: [String.t(), ...], ZM: [String.t(), ...], MW: [String.t(), ...], VA: [String.t(), ...], SH: [String.t(), ...], BN: [String.t(), ...], IN: [String.t(), ...], LK: [String.t(), ...], SX: [String.t(), ...], MY: [String.t(), ...], LA: [String.t(), ...], MN: [String.t(), ...], TR: [String.t(), ...], VG: [String.t(), ...], AW: [String.t(), ...], PR: [String.t(), ...], JO: [String.t(), ...], AM: [String.t(), ...], AG: [String.t(), ...], UG: [String.t(), ...], RW: [String.t(), ...], GI: [String.t(), ...], KM: [String.t(), ...], SR: [String.t(), ...], SV: [String.t(), ...], CZ: [String.t(), ...], PN: [String.t(), ...] }
Returns a mapping of territories to their known IANA timezone names.