timezone_transitions_get> <timezone_offset_get
Last updated: Fri, 16 Jul 2010

timezone_open

(PHP 5 >= 5.1.0)

timezone_openRetorna um novo objeto DateTimeZone

Descrição

DateTimeZone timezone_open ( string $timezone )
DateTimeZone DateTimeZone::__construct ( string $timezone )

Parâmetros

timezone

Identificador da timezone no formato de nome completo (ex: Europe/Prague) ou abreviação (ex: CET).

Valor Retornado

Retorna um objeto DateTimeZone em caso de successo ou FALSE em caso de failha.



User Contributed Notes
timezone_open
brandon at theholbrooks dot org
30-Oct-2007 05:24
To clarify kay's note below, when given an empty or invalid timezone string, this function does issue a warning, but it still returns boolean(FALSE) just like the documentation says.
kay
27-Oct-2007 04:14
In case of an empty identifier the function returns a warning, not the boolean 'false'.

"Warning: timezone_open() [function.timezone-open]: Unknown or bad timezone () "

timezone_transitions_get> <timezone_offset_get
Last updated: Fri, 16 Jul 2010