note 42320 added to function.strtotime

From: Date: Wed, 12 May 2004 04:41:57 +0000
Subject: note 42320 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-69501@lists.php.net to get a copy of this message
To "ach at hellea dot be": That date is valid. The example showed the non-existant date February 30. What happens is the extra 2 days are "rolled over" into March, and at the end of the example you get March 2. This is valid as "February 30th" would be 2 days after February 28th, and the *real* date for 2 days after the 28th is March 2. ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42320 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42320&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42320&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69501) next »