Copyright © tutorialspoint.com
| timezone_name_from_abbr( $abbr [, $gmtOffset [, $is_dst]] ); |
This function returns the timezone name from abbrevation.
| Parameter | Description |
|---|---|
| abbr | Required. Time zone abbreviation. |
| gmtOffset | Optional. Offset from GMT in seconds. |
| is_dst | Optional. Daylight saving time indicator. |
Returns time zone name on success or FALSE on failure.
Following is the usage of this function:
<?php
echo timezone_name_from_abbr("CET") . "\n";
echo timezone_name_from_abbr("", 3600, 0) . "\n";
?>
|
This will produce following result:
Europe/Berlin Europe/Paris |
Copyright © tutorialspoint.com