note 98137 deleted from function.localtime by danbrown
| From: | danbrown@php.net | Date: | Thu, 27 May 2010 20:27:54 +0000 |
| Subject: | note 98137 deleted from function.localtime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169671@lists.php.net to get a copy of this message | ||
Note Submitter: jesse dot j dot morrow at gmail dot com
----
Better way to get difference from UTC.
/**
* Returns the seconds (+/-) current TZ is from UTC.
*/
protected static function tzdelta()
{
return (int)date("Z", time());
}