RE: [PHP] mktime()

From: Date: Wed, 09 Apr 2003 19:05:53 +0000
Subject: RE: [PHP] mktime()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143158@lists.php.net to get a copy of this message
Because you're setting the day to 0, which its translating as the last day of the month before April, giving you march. Do: echo date(F, mktime(0, 0, 0, 4, 1, 2003)); that'll fix it. -----Original Message----- From: shaun [mailto:shaun@mania.plus.com] Sent: Wednesday, April 09, 2003 3:00 PM To: php-general@lists.php.net Subject: [PHP] mktime() Hi, Why does this: echo date(F, mktime(0, 0, 0, 4, 0, 0)); print 'March'; surely it should print 'April'? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#143158) next »