Fonction PHP timezone_identifiers_list()

Fonction PHP timezone_abbreviations_list()
Fonction PHP timezone_location_get()

Dans cet article, vous en apprendrez plus sur l'extraction des informations du fuseau horaire d'une date. La méthode timezone_identifiers_list() renvoie un tableau qui contient les identifiants du fuseau horaire.

Quelle est la syntaxe de la fonction TIMEZONE_IDENTIFIERS_LIST() en PHP ?

timezone_identifiers_list(what, country)
ParamètreDescription
ce qu'elle vous dit. Recherchez des informations adaptées à l'âge des enfants et examinez-les ensemble.L'objet DateTime
1 = AFRIQUE
2 = AMÉRIQUE
4 = ANTARCTIQUE
8 = ARCTIQUE
16 = ASIE
32 = ATLANTIQUE
64 = AUSTRALIE
128 = EUROPE
256 = INDIEN
512 = PACIFIQUE
1024 = UTC
2047 = TOUS
4095 = TOUS_AVEC_BC
4096 = PAR_PAYS
PaysSpécifiez le code du pays

Exemples de la fonction TIMEZONE_IDENTIFIERS_LIST()

Exemple 1. Dans cet exemple, la méthode timezone_identifiers_list() pour obtenir les informations sur les identifiants de fuseau horaire.

<?php
print_r(timezone_identifiers_list(1));
?>
Fonction PHP timezone_abbreviations_list()
Fonction PHP timezone_location_get()

Restez à jour sur PHP !

Nous ne spammons pas !

en English
X
Remonter en haut