update page now
Laravel Live Japan

IntlTimeZone::createTimeZoneIDEnumeration

intltz_create_time_zone_id_enumeration

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

IntlTimeZone::createTimeZoneIDEnumeration -- intltz_create_time_zone_id_enumerationDevuelve una enumeración de los identificadores de zona horaria del sistema con las condiciones de filtro dadas

Descripción

Estilo orientado a objetos (método):

public static IntlTimeZone::createTimeZoneIDEnumeration(int $type, ?string $region = null, ?int $rawOffset = null): IntlIterator|false

Estilo procedimental:

intltz_create_time_zone_id_enumeration(int $type, ?string $region = null, ?int $rawOffset = null): IntlIterator|false

Advertencia

Esta función está actualmente no documentada; solo la lista de sus argumentos está disponible.

Parámetros

type

region

rawOffset

Valores devueltos

Devuelve IntlIterator o false si ocurre un error.

add a note

User Contributed Notes 1 note

up
1
mattkyn at gmail dot com
3 years ago
Iterating the return value gives you a a string with the time zone ID (ie "Europe/London" or "Etc/GMT-1")

For the constants to use for the `zoneType` argument, see:
<?php
IntlTimeZone::TYPE_ANY / the whole lot, including aliases like "CST"
IntlTimeZone::TYPE_CANONICAL / the canonical IDs (no aliases)
IntlTimeZone::TYPE_CANONICAL_LOCATION / only IDs for locations (no "Etc/GMT-1")
?>
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant