RE: [PHP] mktime()

From: Date: Wed, 09 Apr 2003 19:03:33 +0000
Subject: RE: [PHP] mktime()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143157@lists.php.net to get a copy of this message
Probably because you put zero for the day which returns the last day of the previous month. Try reading the documentation. http://www.php.net/manual/en/function.mktime.php "The last day of any given month can be expressed as the "0" day of the next month, not the -1 day." > -----Original Message----- > From: shaun [mailto:shaun@mania.plus.com] > Sent: Wednesday, April 09, 2003 12: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'? >

« previous php.general (#143157) next »