PHP timezone_name_from_abbr() İşlev
Örnek
Kısaltmadan saat dilimi adını döndür:
<?php
echo timezone_name_from_abbr("EST") . "<br>";
echo timezone_name_from_abbr("",7200,0);
?>
Tanım ve Kullanım
timezone_name_from_abbr(), kısaltmadan saat dilimi adını döndürür.
Sözdizimi
timezone_name_from_abbr(abbr, gmtoffset, isdst)
Parametre Değerleri
Parameter | Description |
---|---|
abbr | Required. Specifies the timezone abbreviation |
gmtoffset | Optional. Specifies the offset from GMT in seconds. Default is -1, which means that first found timezone corresponding to abbr is returned. Otherwise exact offset is searched. If not found, the first timezone with any offset is returned |
isdst |
Optional. Specifies daylight saving time indicator.
|
Teknik detaylar
Geri dönüş değeri: | Başarı durumunda saat dilimi adını döndürür. Başarısızlıkta YANLIŞ |
---|---|
PHP Sürümü: | 5.1.3+ |
❮ PHP Tarih/Saat Referansı