PHP timezone_name_from_abbr() Funksie
Voorbeeld
Gee die tydsonenaam terug vanaf afkorting:
<?php
echo timezone_name_from_abbr("EST") . "<br>";
echo timezone_name_from_abbr("",7200,0);
?>
Definisie en gebruik
Die tydsone_naam_van_abbr() gee die tydsonenaam van afkorting terug.
Sintaksis
timezone_name_from_abbr(abbr, gmtoffset, isdst)
Parameterwaardes
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.
|
Tegniese besonderhede
Terugkeerwaarde: | Wys die tydsonenaam by sukses. ONWAAR op mislukking |
---|---|
PHP weergawe: | 5.1.3+ |
❮ PHP Datum/Tyd Verwysing