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 နေ့စွဲ/အချိန် အကိုးအကား