« IntlTimeZone::getGMT
IntlTimeZone::getID »

IntlTimeZone::getIanaID

intltz_get_iana_id

(PHP 8 >= 8.4.0)

IntlTimeZone::getIanaID -- intltz_get_iana_id — タイムゾーン識別子を、対応する IANA 識別子に変換する

説明

オブジェクト指向型 (method):

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

手続き型:

function intltz_get_iana_id(string $timezoneId): string|false

タイムゾーン識別子を、対応する IANA 識別子に変換します。たとえば、 "GMT" は "Etc/GMT" を返し、 "US/Eastern" は "America/New_York" を返します。

注意:

この関数を使うには、ICU version ≥ 74 が必要です。

パラメータ

timezoneId

変換するタイムゾーン識別子。

戻り値

IANA のタイムゾーン識別子を string で返します。失敗した場合は false を返します。

参考

関連キーワード:
タイムゾーン   識別子   IntlTimeZone   intltz   getIanaID   iana   timezoneId   windows   Windows   翻訳   getGMT   getID   オブジェクト指向   method   static   手続き   Eastern   America   York   参考   create   time   zone
関連する関数・ページ:
intltimezone.getwindowsid   intltimezone.getidforwindowsid   intltimezone.getid   intltimezone.getgmt   intltimezone.getcanonicalid   intltimezone.createtimezone