note 56684 added to function.checkdate
| From: | Thierry at osu1 dot php dot net | Date: | Mon, 12 Sep 2005 14:19:51 +0000 |
| Subject: | note 56684 added to function.checkdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95053@lists.php.net to get a copy of this message | ||
Thank for this function but there is a little error in the test of $day:
if ((abs($year-date('Y'))>$yearepsilon) || // year outside given range
($month<1) || ($month>12) || ($day<1) ||
(($month==2) && ($day>28+(!($year%4))-(!($year%100))+(!($year%400)))) ||
($day>30+(($month>7)^($month&1)))) return false; // date out of range
----
Manual Page -- http://www.php.net/manual/en/function.checkdate.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56684
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56684&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56684&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56684&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56684&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56684&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56684&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56684&report=yes
Search -- http://master.php.net/manage/user-notes.php