Expand description
ICU’s en SPECIFIC zone names — Eastern Standard Time / EST, the zzzz
and z pattern fields and the parenthetical of Date.prototype.toString.
ICU names a zone through its METAZONE at an instant: America/New_York
belongs to America_Eastern, whose en names are Eastern Standard Time,
Eastern Daylight Time, EST and EDT. A zone may change metazone over
time (Africa/Algiers moved between Europe_Western and Europe_Central
four times), a metazone may lack a name of some width (Europe_Central has
no short names in en, so Paris is GMT+1 under timeZoneName: 'short'),
and a zone may carry names of its own ahead of any metazone (Etc/UTC). A
missing name falls back to the localized GMT format, which the callers
render.
The tables in tznames_data.rs transcribe ICU 79.1 / CLDR 49, the data node
v26.12.1 ships. Keying by the zone rather than by the abbreviation
localtime reports is what tells Europe/London (metazone British, no
standard-time name: GMT+0) from Atlantic/Reykjavik (metazone GMT:
GMT), which share the abbreviation GMT.
Functions§
- local_
zone_ id - The IANA id of the process’s local zone:
TZ(a leading:dropped, a path reduced to what followszoneinfo/, empty meaning UTC), else the target of/etc/localtime. Read on every call, aslocaltime_rre-readsTZ.Nonewhen neither names a zone the system has (a POSIX rule string such asEST5EDT,M3.2.0,M11.1.0). - specific_
name - The en specific name of zone
idatsecs— long (zzzz) or short (z), daylight or standard — orNonewhere ICU falls back to the GMT format.