note 17918 added to function.gmdate
| From: | edlang-removethis at tsumakin dot andthis dot net | Date: | Wed, 02 Jan 2002 22:52:50 +0000 |
| Subject: | note 17918 added to function.gmdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24315@lists.php.net to get a copy of this message | ||
Another version of gmtime, so that it returns an array similar to that returned by locatime():
function gmtime($time) {
$data = gmdate("S M H d m Y w j 0", $time);
$array = explode(" ", $data);
// Fix up some things
$array[4] = $array[4] - 1;
$array[5] = $array[5] - 1900;
$array[7] = $array[7] - 1;
return $array;
}
--
http://www.php.net/manual/en/function.gmdate.php
http://master.php.net/manage/user-notes.php?action=edit+17918
http://master.php.net/manage/user-notes.php?action=delete+17918
http://master.php.net/manage/user-notes.php?action=reject+17918