note 32950 added to function.getdate

From: Date: Wed, 11 Jun 2003 16:52:18 +0000
Subject: note 32950 added to function.getdate
Groups: php.notes 
Request: Send a blank email to php-notes+get-50198@lists.php.net to get a copy of this message
It appears that the array returned by getdate contains the UNIX timestamp in the 0 index like so: Array("seconds" => 3, "minutes" => 45, "hours" => 11, "mday" => 11, "wday" => 3, "mon" => 6, "year" => 2003, "yday" => 161, "weekday" => Wednesday, "month" => June, "0" => 1055349903); That's a handy thing to have. It saves the effort of keeping it around in another variable or recalculating it or putting it into the array yourself. This is in PHP 4.3.1 on FreeBSD 4.8. ---- Manual Page -- http://www.php.net/manual/en/function.getdate.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32950 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32950&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32950&report=yes

« previous php.notes (#50198) next »