note 46561 deleted from function.checkdate by aidan
| From: | aidan@php.net | Date: | Thu, 10 Feb 2005 05:34:19 +0000 |
| Subject: | note 46561 deleted from function.checkdate by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-84765@lists.php.net to get a copy of this message | ||
Note Submitter: newuser AT example DOT com
----
each century is *not* a leap year, while each full millennium *is* that. So compute leap year like
this:
$leap_year = (($year % 4 == 0) && ($year % 100 != 0) || ($year % 1000 == 0))