PHP timezone_name_from_abbr ()ฟังก์ชั่น
ตัวอย่าง
กลับชื่อเขตเวลาจากตัวย่อ:
<?php
echo timezone_name_from_abbr("EST") . "<br>";
echo timezone_name_from_abbr("",7200,0);
?>
ความหมายและการใช้งาน
timezone_name_from_abbr() ส่งกลับชื่อเขตเวลาจากตัวย่อ
ไวยากรณ์
timezone_name_from_abbr(abbr, gmtoffset, isdst)
ค่าพารามิเตอร์
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.
|
รายละเอียดทางเทคนิค
คืนมูลค่า: | ส่งกลับชื่อเขตเวลาเมื่อสำเร็จ FALSE เมื่อล้มเหลว |
---|---|
รุ่น PHP: | 5.1.3+ |
❮ PHP วันที่/เวลาอ้างอิง