php8.5
Home/ Manual/ intl / intltimezone/ IntlTimeZone::getIDForWindowsID

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

timezoneId
region

Return Values

Returns the system timezoneFalseforfailure.

Changelog

VersionDescription
8.0.0region is now nullable.

See Also

  • IntlTimeZone::getWindowsID

Source: reference/intl/intltimezone/getidforwindowsid.xml · from the official PHP manual (php/doc-en)