Función PHP timezone_name_from_abbr()
❮ Referencia de fecha/hora de PHP
Ejemplo
Devuelve el nombre de la zona horaria de la abreviatura:
<?php
echo timezone_name_from_abbr("EST") . "<br>";
echo timezone_name_from_abbr("",7200,0);
?>
Definición y uso
timezone_name_from_abbr() devuelve el nombre de la zona horaria de la abreviatura.
Sintaxis
timezone_name_from_abbr(abbr, gmtoffset, isdst)
Valores paramétricos
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.
|
Detalles técnicos
Valor devuelto: | Devuelve el nombre de la zona horaria en caso de éxito. FALSO en falla |
---|---|
Versión PHP: | 5.1.3+ |
❮ Referencia de fecha/hora de PHP