Fonction PHP timezone_name_from_abbr()
Exemple
Renvoie le nom du fuseau horaire à partir de l'abréviation :
<?php
echo timezone_name_from_abbr("EST") . "<br>";
echo timezone_name_from_abbr("",7200,0);
?>
Définition et utilisation
Le timezone_name_from_abbr() renvoie le nom du fuseau horaire à partir de l'abréviation.
Syntaxe
timezone_name_from_abbr(abbr, gmtoffset, isdst)
Valeurs des paramètres
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.
|
Détails techniques
Valeur de retour : | Renvoie le nom du fuseau horaire en cas de succès. FAUX en cas d'échec |
---|---|
Version PHP : | 5.1.3+ |
❮ Référence date/heure PHP