note 22972 added to function.localtime
| From: | nevermiah at hotmail-dot-com-nospam dot php dot net | Date: | Fri, 05 Jul 2002 17:15:35 +0000 |
| Subject: | note 22972 added to function.localtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32641@lists.php.net to get a copy of this message | ||
Whoops. The code I submitted before should have the following lines changed:
function rtime($time = time(), $max_level = 5)
should be:
function rtime($time = -1, $max_level = 5)
After checking for gmttime(), insert:
// Hack to deal with getting time since the "epoch"
if ($time == -1) $time = time();
Hope this helps.
nevermiah at hotmail dot com
--
http://www.php.net/manual/en/function.localtime.php
http://master.php.net/manage/user-notes.php?action=edit+22972
http://master.php.net/manage/user-notes.php?action=delete+22972
http://master.php.net/manage/user-notes.php?action=reject+22972