Funkce PHP timezone_name_from_abbr() .
Příklad
Vraťte název časového pásma ze zkratky:
<?php
echo timezone_name_from_abbr("EST") . "<br>";
echo timezone_name_from_abbr("",7200,0);
?>
Definice a použití
Timezone_name_from_abbr() vrací název časového pásma ze zkratky.
Syntax
timezone_name_from_abbr(abbr, gmtoffset, isdst)
Hodnoty parametrů
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.
|
Technické údaje
Návratová hodnota: | Při úspěchu vrátí název časového pásma. NEPRAVDA při selhání |
---|---|
Verze PHP: | 5.1.3+ |
❮ Reference data/času PHP