note 46831 deleted from function.checkdate by aidan

From: Date: Thu, 10 Feb 2005 05:34:27 +0000
Subject: note 46831 deleted from function.checkdate by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84766@lists.php.net to get a copy of this message
Note Submitter: ---- Just a note on the leap year thing, as leap years are as follows: 1. if the year is dividable by 4 then it is a leapyear, unless.. 2. if the year is dividable by 100, then it is not a leapyear, unless.. 3. if the year is dividable by 400 then it is a leapyear (instead of the millenia). So the formula is: $leap_year = $year % 400 == 0 || ($year % 4 == 0 && $year % 100 != 0)

« previous php.notes (#84766) next »