| colinodell | Yes | 2016-04-01 02:25 |
| derick | Yes | 2016-04-04 09:51 |
| galvao | Yes | 2016-04-07 15:59 |
| kalle | Yes | 2016-04-11 00:17 |
| klaussilveira | Yes | 2016-04-04 19:46 |
| krakjoe | Yes | 2016-04-01 06:41 |
| leigh | Yes | 2016-04-04 12:47 |
| lstrojny | Yes | 2016-04-01 09:24 |
| mariano | Yes | 2016-04-03 19:02 |
| mattwil | Yes | 2016-04-01 11:27 |
| mbeccati | Yes | 2016-04-03 07:58 |
| mike | Yes | 2016-04-01 06:37 |
| mrook | Yes | 2016-04-01 07:09 |
| ocramius | Yes | 2016-04-06 13:33 |
| pajoye | Yes | 2016-04-01 03:10 |
| patrickallaert | Yes | 2016-04-05 06:37 |
| pauloelr | Yes | 2016-04-13 18:04 |
| pierrick | Yes | 2016-04-14 21:23 |
| pollita | Yes | 2016-04-01 01:36 |
| sammyk | Yes | 2016-04-04 20:29 |
| sebastian | Yes | 2016-04-01 06:44 |
| stas | Yes | 2016-04-02 08:24 |
| svpernova09 | Yes | 2016-04-11 18:50 |
| trowski | Yes | 2016-04-05 16:35 |
| yohgaki | Yes | 2016-04-01 02:05 |
| yunosh | Yes | 2016-04-04 08:12 |
| zimt | Yes | 2016-04-01 14:02 |
Copied from wiki.php.net, last synchronized Oct 13, 2026 11:51 UTC
ICU adds new methods from time to time. Specifically, the methods TimeZone::getWindowsID and TimeZone::getIDForWindowsID were added with ICU4C 52.
Add support for these two new methods as static methods on the PHP IntlTimeZone class using the following prototypes:
class IntlTimeZone {
/* Converts a system timezone such as "America/Los_Angeles" to a
* Windows Timezone identifier.
*
* @param string $systemID - System Timezone Identifier, such as "America/Los_Angeles"
* @returns string - Windows Timezone Identifier, i.e. "Pacific Standard Time", or FALSE on failure
*/
public static function getWindowsID(string $systemID): string;
/* Convers a windows timezone identier such as "Pacific Time Zone" to a
* System Timezone identifier appropriate to the region requested.
* .
* @param string $windowsID - Windows Timezone identifier, such as "Pacific TimeZone"
* @param string $region - Preferred region for result, or NULL for no preference
* @returns string - System Timezone identifier, i.e. "America/Los_Angeles", or FALSE on failure
*/
public static function getIDForWindowsID(string $windowsID, ?string $region = NULL): string;
}
function intltz_get_windows_id($id) { return IntlTimeZone::getWindowsID($id); }
function intltz_get_id_for_windows_id($winid, $region = NULL) { return IntlTimeZone::getIDForWindowsID($winid, $region); }
PHP 7.1
Simple 50% +1 majority: “Should this APIs be added to IntlTimeZone?”
Vote: Approve get-windows-id RFC and merge oatch into master? — Yes: 27 · No: 0 (closed)
https://github.com/php/php-src/compare/master...sgolemon:intl.timezone.52-updates
https://github.com/php/php-src/commit/a9568d54858912cd741df183f8eee2493361de7f