Fonction PHP timezone_location_get()
Exemple
Renvoie les informations de localisation pour le fuseau horaire donné :
<?php
$tz=timezone_open("Asia/Taipei");
print_r(timezone_location_get($tz));
?>
Définition et utilisation
Le timezone_location_get() renvoie les informations de localisation pour le fuseau horaire donné.
Syntaxe
timezone_location_get(object)
Valeurs des paramètres
Parameter | Description |
---|---|
object | Required. Specifies a DateTimeZone object returned by timezone_open() |
Détails techniques
Valeur de retour : | Renvoie un tableau contenant des informations de localisation pour le fuseau horaire |
---|---|
Version PHP : | 5.3+ |
❮ Référence date/heure PHP