Easy Tutorial
❮ Func Misc Highlight File Func Math Expm1 ❯

PHP timezone_name_from_abbr() Function

PHP Date/Time Reference Manual

Example

Returns the timezone name based on the timezone abbreviation:


Definition and Usage

The timezone_name_from_abbr() function returns the timezone name based on the timezone abbreviation.

Syntax

Parameter Description
abbr Required. Specifies the timezone abbreviation.
gmtoffset Optional. Specifies the offset in seconds from GMT. Default is -1, which means it returns the first timezone found matching the abbreviation. Otherwise, it searches for the exact offset. If not found, it returns the first timezone with any offset.
isdst Optional. Specifies the daylight saving time indicator. -1 = default. Whether to consider daylight saving time when searching for the timezone.<br>1 = indicates that gmtoffset is an offset affected by daylight saving time.<br>0 = indicates that gmtoffset is an offset not affected by daylight saving time.

Technical Details

Return Value: Returns the timezone name on success, FALSE on failure.
PHP Version: 5.1.3+
--- ---
❮ Func Misc Highlight File Func Math Expm1 ❯