IntlTimeZone::getIanaID
intltz_get_iana_id
(PHP 8 >= 8.4.0)
IntlTimeZone::getIanaID -- intltz_get_iana_id — Translate a timezone identifier to its IANA equivalent
Description
Object-oriented style (method):
Procedural style:
Translates a timezone identifier to its IANA equivalent. For example,
"GMT" returns "Etc/GMT", and
"US/Eastern" returns "America/New_York".
Note:
This function requires ICU version >= 74.
Parameters
timezoneId
The timezone identifier to translate.
See Also
- intltz_get_id_for_windows_id() - Translate a Windows timezone into a system timezone
- intltz_get_windows_id() - Translate a system timezone into a Windows timezone
- intltz_create_time_zone() - Create a timezone object for the given ID
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
