PHP Conference Japan 2024

IntlTimeZone::getWindowsID

intltz_get_windows_id

(PHP 7 >= 7.1.0, PHP 8)

IntlTimeZone::getWindowsID -- intltz_get_windows_id將系統時區轉換為 Windows 時區

說明

物件導向風格 (方法)

public static IntlTimeZone::getWindowsID(字串 $timezoneId): 字串|false

程序式風格

intltz_get_windows_id(字串 $timezoneId): 字串|false

將系統時區(例如 "America/Los_Angeles")轉換為 Windows 時區(例如 "Pacific Standard Time")。

注意: 此函式需要 ICU 版本 ≥ 52。

警告

此函式目前沒有說明文件;僅提供其參數列表。

參數

timezoneId

傳回值

傳回 Windows 時區,失敗時傳回 false

參見

新增註解

使用者提供的註解

此頁面沒有使用者提供的註解。
To Top