Learning PHP
Advanced PHP
PHP Function Reference
PHP Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM
|
PHP Function timezone_name_from_abbr()
Syntax
timezone_name_from_abbr( $abbr [, $gmtOffset [, $is_dst]] );
|
Definition and Usage
This function returns the timezone name from abbrevation.
Paramters
Parameter | Description |
abbr | Required. Time zone abbreviation. |
gmtOffset | Optional. Offset from GMT in seconds. |
is_dst | Optional. Daylight saving time indicator. |
Return Value
Returns time zone name on success or FALSE on failure.
Example
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
|
|
|
|