note 85699 deleted from function.getdate by danbrown
| From: | danbrown@php.net | Date: | Mon, 23 Aug 2010 21:54:46 +0000 |
| Subject: | note 85699 deleted from function.getdate by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171956@lists.php.net to get a copy of this message | ||
Note Submitter: Ian Thomas
----
Simplier version of gmgetdate
function gmgetdate($timestamp = null)
{
if ($timestamp) return getdate($timestamp);
else return getdate(time());
}
Note: A unix timestamp is always represented in GMT (or more correctly UCT)