note 45829 deleted from function.checkdate by curt
| From: | curt@php.net | Date: | Sat, 16 Oct 2004 04:56:18 +0000 |
| Subject: | note 45829 deleted from function.checkdate by curt | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78643@lists.php.net to get a copy of this message | ||
Note Submitter: zoomerz
----
--- Editor's Note: ---
Actually, you forgot to include that there is no leap year on each full milenium, but is on each
century (it's even more complicated tham that)
--- end of note ---
here's a more direct method to determine if the current year is a leap year....
$yr = (date('Y') % 4 == 0) ? "is leap" : "is not leap";