note 11827 added to function.mktime.php
| From: | pcm at pcma dot demon dot co dot uk | Date: | Thu, 08 Mar 2001 21:40:00 +0000 |
| Subject: | note 11827 added to function.mktime.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12073@lists.php.net to get a copy of this message | ||
He up above said: "Feb 2000 was a leap year. I don't remember the algorythm, but just run
cal on any unix system for year 2000, and you'll see."
The algorith is 'if the year is divisible by 400 then it's not a leap year'.
Year 2000 is divisible by 400 and is not a leap year. Year 2100 is divisible by 4 so we would expect
it to be a leap year, and since it is not divisible by 400 it WILL be a leap year.
http://www.php.net/manual/en/function.mktime.php