array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'intltimezone.getidforwindowsid.php', 1 => 'IntlTimeZone::getIDForWindowsID', ), 'up' => array ( 0 => 'class.intltimezone.php', 1 => 'IntlTimeZone', ), 'prev' => array ( 0 => 'intltimezone.getid.php', 1 => 'IntlTimeZone::getID', ), 'next' => array ( 0 => 'intltimezone.getoffset.php', 1 => 'IntlTimeZone::getOffset', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/intl/intltimezone/getidforwindowsid.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7 >= 7.1.0, PHP 8)
IntlTimeZone::getIDForWindowsID -- intltz_get_id_for_windows_id — Translate a Windows timezone into a system timezone
Object-oriented style (method):
$timezoneId
, ?string $region
= null
): string|falseProcedural style:
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.
This function is currently not documented; only its argument list is available.
timezoneId
region
Returns the system timezone or false
on failure.
Version | Description |
---|---|
8.0.0 |
region is now nullable.
|