note 43103 deleted from function.mktime by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 09 Jun 2004 21:42:42 +0000 |
| Subject: | note 43103 deleted from function.mktime by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-70596@lists.php.net to get a copy of this message | ||
Note Submitter: User with very little time
----
INI END RANGE LEAP YEARS
... ... ... ...
01/01/1920 01/01/1939 -3 5
01/01/1940 01/01/1959 -2 5
01/01/1960 01/01/1979 -1 5
01/01/1980 01/01/1999 0 5 * this is the range used for calculations with mktime
01/01/2000 01/01/2019 1 5
01/01/2020 01/01/2039 2 5
01/01/2040 01/01/2059 3 5
01/01/2060 01/01/2079 4 5
01/01/2080 01/01/2099 5 5
01/01/2100 01/01/2119 6 4 <------
... ... ... ...
I noticed this while scanning the page refreshing my memory and came across this: if you continue
these periods to 1900 or 2100, you come across the error of only having 4 leap years. Every four
years is a leap year with the exception being every 100 years, with that exception being every 400
years (for those who have no clue what I'm talking about, it says, 1900 and 2100 are not leap
years, but 2000 is). There are 365.2496... (or something like that, I forgot the real number) days
in a year, which allows this. This is a major problem if you want to do estimates of the far
future.