PHP timezone_name_from_abbr() Funzione
Esempio
Restituisce il nome del fuso orario dall'abbreviazione:
<?php
echo timezone_name_from_abbr("EST") . "<br>";
echo timezone_name_from_abbr("",7200,0);
?>
Definizione e utilizzo
Timezone_name_from_abbr() restituisce il nome del fuso orario dall'abbreviazione.
Sintassi
timezone_name_from_abbr(abbr, gmtoffset, isdst)
Valori dei parametri
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.
|
Dettagli tecnici
Valore di ritorno: | Restituisce il nome del fuso orario in caso di successo. FALSO in caso di fallimento |
---|---|
Versione PHP: | 5.1.3+ |
❮ Riferimento di data/ora PHP