note 10641 added to mktime

From: Date: Mon, 15 Jan 2001 01:55:08 +0000
Subject: note 10641 added to mktime
Groups: php.notes 
Request: Send a blank email to php-notes+get-9799@lists.php.net to get a copy of this message
not sure if this has been changed in php4.04 or something but the mktime documentation is incorrect as far as finding the last day of the month. (this is under the debian php4.0.3pl1 package) The listed code will return the timestamp containing the last day of the month previous to the one given(not the month itself). Putting a Date("d", ... ) around both of the mktimes will fix the problem. http://www.php.net/manual/en/function.mktime.php

« previous php.notes (#9799) next »