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.
timezone_open
(PHP 5 >= 5.1.0)
timezone_open — Yeni bir DateTimeZone nesnesi döndürür
Açıklama
Değiştirgeler
- zaman dilimi
-
Zaman dilimi belirtecinin tam adı (ör. Europe/Istanbul) ya da kısaltması (ör. EET).
Dönen Değerler
Başarılı olduğunda DateTimeZone nesnesini, başarısız olduğunda FALSE değerini döndürür.
timezone_open
brandon at theholbrooks dot org
30-Oct-2007 07:24
30-Oct-2007 07:24
kay
27-Oct-2007 06:14
27-Oct-2007 06: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 () "
