IntlTimeZone::getIDForWindowsID

intltz_get_id_for_windows_id

(PHP 7 >= 7.1.0, PHP 8)

IntlTimeZone::getIDForWindowsID -- intltz_get_id_for_windows_idTranslate a Windows timezone into a system timezone

說明

面向?qū)ο箫L(fēng)格 (method):

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

過程化風(fēng)格:

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

Translates a Windows timezone (e.g. "Pacific Standard Time") into a system timezone (e.g. "America/Los_Angeles").

注意: This function requires ICU version ≥ 52.

警告

本函數(shù)還未編寫文檔,僅有參數(shù)列表。

參數(shù)

timezoneId

region

返回值

Returns the system timezone 或者在失敗時返回 false.

更新日志

版本 說明
8.0.0 region is now nullable.

參見