problem with getdate()

From: Date: Mon, 11 Mar 2002 15:31:25 +0000
Subject: problem with getdate()
Groups: php.general 
Request: Send a blank email to php-general+get-88014@lists.php.net to get a copy of this message
I am having a problem with the getdate() function. I don't understand why I am getting the output that it is giving me. Here is the code: $timevalid_ = getdate(); $hours = $timevalid_["hours"] + 1; $minutes = $timevalid_["minutes"]; $month = $timevalid_["mon"]; $day = $timevaild_["mday"]; $year = $timevalid_["year"]; $update = mktime($hours, $minutes, 0, $month, $day, $year); echo "\$hours = $hours<BR>\n"; echo "\$minutes = $minutes<BR>\n"; echo "\$month = $month<BR>\n"; echo "\$day = $day<BR>\n"; echo "\$year = $year<BR>\n"; echo date("F jS, Y g:i a",$update); With this code the output is as follows, but I don't see why it is not giving me the $day: $hours = 10 $minutes = 27 $month = 3 $day = $year = 2002 February 28th, 2002 10:27 am You can see the code run from my server at www.wildwebtech.com/php-bin/test/mfmtime.php Any help that anyone can provide will be greatly appreciated. -- Joshua E Minnie CIO josh@acsurf.net "Don't work for recognition, but always do work worthy of recognition."

« previous php.general (#88014) next »