Função PHP timezone_name_from_abbr()
❮ Referência de Data/Hora do PHP
Exemplo
Retorne o nome do fuso horário da abreviação:
<?php
echo timezone_name_from_abbr("EST") . "<br>";
echo timezone_name_from_abbr("",7200,0);
?>
Definição e uso
O timezone_name_from_abbr() retorna o nome do fuso horário da abreviação.
Sintaxe
timezone_name_from_abbr(abbr, gmtoffset, isdst)
Valores de parâmetro
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.
|
Detalhes técnicos
Valor de retorno: | Retorna o nome do fuso horário em caso de sucesso. FALSO em caso de falha |
---|---|
Versão do PHP: | 5.1.3+ |
❮ Referência de Data/Hora do PHP