« IntlTimeZone::getID
IntlTimeZone::getOffset »

IntlTimeZone::getIDForWindowsID

intltz_get_id_for_windows_id

(PHP 7 >= 7.1.0, PHP 8)

IntlTimeZone::getIDForWindowsID -- intltz_get_id_for_windows_id — Windows のタイムゾーンを、システムタイムゾーンに翻訳する

説明

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

public static function IntlTimeZone::getIDForWindowsID(string $timezoneId, ?string $region = null): string|false

手続き型:

function intltz_get_id_for_windows_id(string $timezoneId, ?string $region = null): string|false

Windows のタイムゾーン (例: "Pacific Standard Time") を、システムタイムゾーン (例: "America/Los_Angeles") に翻訳します。

注意:

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

警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

パラメータ

timezoneId

region

戻り値

システムタイムゾーンを返します。 失敗した場合に false を返します.

変更履歴

バージョン 説明
8.0.0 region は、nullable になりました。

参考

関連キーワード:
タイムゾーン   IntlTimeZone   Windows   翻訳   region   getIDForWindowsID   intltz   windows   timezoneId   getID   getOffset   オブジェクト指向   method   static   手続き   Pacific   Standard   Time   America   Angeles   詳細   記述   履歴   nullable   参考
関連する関数・ページ:
intltimezone.getwindowsid   intltimezone.getianaid   intltimezone.getid   intltimezone.getcanonicalid   intltimezone.hassamerules   intltimezone.getregion