note 71367 deleted from function.date-default-timezone-set by bobby
| From: | bobby@php.net | Date: | Fri, 24 Nov 2006 18:47:10 +0000 |
| Subject: | note 71367 deleted from function.date-default-timezone-set by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120057@lists.php.net to get a copy of this message | ||
Note Submitter:
Reason: in docs
----
Get time zone offset in seconds with timezone_identifier:
<?php
$offset = timezone_offset_get('Europe/Paris');
// returns '3600'
?>
Get timezone_identifier with offset
<?php
$timezone_identifier = timezone_name_from_abbr("",$offset,0);
// returns 'Europe/Paris'
?>