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