note 46561 added to function.checkdate
| From: | newuserATexampleDOTcom at osu1 dot php dot net | Date: | Fri, 15 Oct 2004 13:58:11 +0000 |
| Subject: | note 46561 added to function.checkdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78585@lists.php.net to get a copy of this message | ||
Just a correction: each century is *not* a leap year, while each full millennium *is* that. So you
compute it like this:
$leap_year = (($year % 4 == 0) && ($year % 100 != 0) || ($year % 1000 == 0))
----
Manual Page -- http://www.php.net/manual/en/function.checkdate.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46561
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46561&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46561&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46561&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46561&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46561&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46561&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46561&report=yes
Search -- http://master.php.net/manage/user-notes.php