note 98137 deleted from function.localtime by danbrown
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
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());
}