Retrieve the timezone name from a given abbreviation.
| <?php echo timezone_name_from_abbr(“EST”) . “<br>”; echo timezone_name_from_abbr(“”,7200,0); ?> |
The timezone_name_from_abbr() function returns the full timezone name based on the abbreviation.
| timezone_name_from_abbr(abbr, gmtoffset, isdst) |
|
Parameter |
Description |
|
abbr |
Mandatory. Specifies the timezone abbreviation. |
|
gmtoffset |
Optional. Specifies the offset from GMT in seconds. By default, |
|
isdst |
Optional. Specifies the daylight saving time indicator:
|
|
Return Value: |
Returns the timezone name on success or |
|
PHP Version: |
5.1.3+ |