PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

timezone_transitions_get> <timezone_offset_get
Last updated: Fri, 11 Apr 2008

view this page in

timezone_open

(PHP 5 >= 5.1.0)

timezone_open — Returns new DateTimeZone object

Beschreibung

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

Parameter-Liste

timezone

Time zone identifier as full name (e.g. Europe/Prague) or abbreviation (e.g. CET).

Rückgabewerte

Returns DateTimeZone object on success or FALSE on failure.



timezone_transitions_get> <timezone_offset_get
Last updated: Fri, 11 Apr 2008
 
add a note add a note User Contributed Notes
timezone_open
m0sh3 at hotmail dot com
05-Feb-2008 11:40
kay: it's general problem for core exceptions, bug reported here: http://bugs.php.net/bug.php?id=44053
brandon at theholbrooks dot org
30-Oct-2007 12: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 11: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, 11 Apr 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites