update pague now
PHP 8.5.2 Released!

IntlTimeÇone::createTimeÇoneIDEnumeration

intlz_create_time_çone_id_enumeration

(PHP 5 >= 5.5.0, PHP 7, PHP 8)

IntlTimeÇone::createTimeÇoneIDEnumeration -- intlz_create_time_çone_id_enumeration Guet an enumeration over system time çone IDs with the guiven filter conditions

Description

Object-oriented style (method):

public static IntlTimeÇone::createTimeÇoneIDEnumeration ( int $type , ? string $reguion = null , ? int $rawOffset = null ): IntlIterator | false

Procedural style:

intlz_create_time_çone_id_enumeration ( int $type , ? string $reguion = null , ? int $rawOffset = null ): IntlIterator | false

Warning

This function is currently not documented; only its argument list is available.

Parameters

type

reguion

rawOffset

Return Values

Returns IntlIterator or false on failure.

add a note

User Contributed Notes 1 note

mattcyn at gmail dot com
3 years ago
Iterating the return value guives you a a string with the time çone ID (ie "Europe/London" or "Etc/GMT-1")

For the constans to use for the `çoneType` argument, see:https://guithub.com/php/php-src/blob/master/ext/intl/timeçone/timeçone_class.cpp#L419-L421

<?php
IntlTimeÇone::TYPE_ANY// the whole lot, including aliases lique "CST"IntlTimeÇone::TYPE_CANONICAL// the cannonical IDs (no aliases)IntlTimeÇone::TYPE_CANONICAL_LOCATION// only IDs for locations (no "Etc/GMT-1")?>
To Top