note 32950 deleted from function.getdate by pollita

From: Date: Wed, 11 Jun 2003 21:39:48 +0000
Subject: note 32950 deleted from function.getdate by pollita
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-50206@lists.php.net to get a copy of this message
Note Submitter: ketan ---- 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.

« previous php.notes (#50206) next »