Return the time zone name based on the time zone abbreviation:
<?phpecho timezone_name_from_abbr("EST") . "<br>";echo timezone_name_from_abbr("",7200,0);?>timezone_name_from_abbr() returns the time zone name based on the time zone abbreviation.
timezone_name_from_abbr( abbr,gmtoffset,isdst);
parameter | describe |
---|---|
abbr | Required. Specifies the time zone abbreviation. |
gmtoffset | Optional. Specifies the offset in seconds relative to GMT. The default is -1, which means the time zone of the first found matching abbreviation is returned. Otherwise the exact offset is searched. If not found, returns the first time zone at any offset. |
isdst | Optional. Specifies daylight saving time indicator. -1 = default. Whether to consider the time zone's daylight saving time when searching 1 = indicates that gmtoffset is an offset affected by daylight saving time 0 = indicates that gmtoffset is an offset that is not affected by daylight saving time |
Return value: | Returns the time zone name on success, FALSE on failure. |
---|---|
PHP version: | 5.1.3+ |