note 47084 added to function.date

From: Date: Tue, 02 Nov 2004 12:19:52 +0000
Subject: note 47084 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-79495@lists.php.net to get a copy of this message
I think this is the bug of date function... see... <? $date = "2004-10-01"; $date2 = "2004-11-11"; for($date1=date("Y-m-d",(strtotime($date)+86400)); $date1 <= $date2; $date1=date("Y-m-d",(strtotime($date1)+86400)) ){ print($date1."\n"); } ?> when we are going from 2004-10-31 to 2004-11-01 it's looping Did anybody solve this problem ? ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47084 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47084&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47084&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47084&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47084&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47084&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47084&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47084&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#79495) next »