IntlTimeZone::getWindowsID
PHP function
Edit on GitHub ✎
(PHP 7 >= 7.1.0, PHP 8)
Translate a system timezone into a Windows timezone
Description
Oop (method):
IntlTimeZone::getWindowsID(string $timezoneId): string|false
Procedural:
intltz_get_windows_id(string $timezoneId): string|false
Translates a system timezone (e.g. "America/Los_Angeles") into a Windows timezone (e.g. "Pacific Standard Time").
Note
This function requires ICU version ≥ 52.
Func
Parameters
timezoneId
Return Values
Returns the Windows timezoneFalseforfailure.
See Also
IntlTimeZone::getIDForWindowsID