PHP timezone_name_from_abbr() Functie
Voorbeeld
Retourneer de naam van de tijdzone van de afkorting:
<?php
echo timezone_name_from_abbr("EST") . "<br>";
echo timezone_name_from_abbr("",7200,0);
?>
Definitie en gebruik
De timezone_name_from_abbr() retourneert de tijdzonenaam van afkorting.
Syntaxis
timezone_name_from_abbr(abbr, gmtoffset, isdst)
Parameterwaarden
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.
|
Technische details
Winstwaarde: | Retourneert de naam van de tijdzone bij succes. ONWAAR bij fout |
---|---|
PHP-versie: | 5.1.3+ |
❮ PHP Datum/Tijd Referentie