Fonction PHP timezone_abbreviations_list()
Exemple
Imprimez le dst, le décalage et le nom du fuseau horaire pour le fuseau horaire "act":
<?php
$tzlist = DateTimeZone::listAbbreviations();
print_r($tzlist["acst"]);
?>
Définition et utilisation
timezone_abbreviations_list() renvoie un tableau associatif contenant dst, offset et le nom du fuseau horaire.
Syntaxe
timezone_abbreviations_list()
Détails techniques
Valeur de retour : | Retourne un tableau associatif en cas de succès. FAUX en cas d'échec |
---|---|
Version PHP : | 5.2+ |
❮ Référence date/heure PHP