note 43103 added to function.mktime

From: Date: Wed, 09 Jun 2004 20:12:20 +0000
Subject: note 43103 added to function.mktime
Groups: php.notes 
Request: Send a blank email to php-notes+get-70466@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.mktime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43103 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43103&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43103&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70466) next »