पीएचपी 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 |
---|---|
पीएचपी संस्करण: | 5.1.3+ |
❮ पीएचपी दिनांक/समय संदर्भ