دالة 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.
|
تفاصيل تقنية
قيمة الإرجاع: | إرجاع اسم المنطقة الزمنية عند النجاح. خطأ في الفشل |
---|---|
إصدار PHP: | 5.1.3+ |
❮ PHP مرجع التاريخ / الوقت