note 45337 added to function.date

From: Date: Thu, 02 Sep 2004 15:36:15 +0000
Subject: note 45337 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-75942@lists.php.net to get a copy of this message
The documentation regarding future dates does not seem to be correct. <?php $tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y")); ?> If this is executed on Dec 31, 2004 the date returned is Dec 1, 2004. The example essentially says "current month, increment day, current year". (Unless I'm wrong!) ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45337 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45337&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45337&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#75942) next »