IntlTimeZone::getIanaID

intltz_get_iana_id

(PHP 8 >= 8.4.0)

IntlTimeZone::getIanaID -- intltz_get_iana_idTranslate a timezone identifier to its IANA equivalent

说明

面向对象风格 (method):

public static function IntlTimeZone::getIanaID(string $timezoneId): string|false

过程化风格:

function intltz_get_iana_id(string $timezoneId): string|false

Translates a timezone identifier to its IANA equivalent. For example, "GMT" returns "Etc/GMT", and "US/Eastern" returns "America/New_York".

注意: This function requires ICU version >= 74.

参数

timezoneId
The timezone identifier to translate.

返回值

Returns the IANA timezone identifier as a string, or false on failure.

参见