Difference between revisions of "Talk:Unix2DateTime"

From Second Life Wiki
Jump to navigation Jump to search
m (Error corrected)
(→‎Leap Years: new section)
Line 5: Line 5:
<br/><code>    days = DaysPerMonth(year,mt++);</code>
<br/><code>    days = DaysPerMonth(year,mt++);</code>
<br/>--[[User:Huney Jewell|Huney Jewell]] 07:20, 20 September 2007 (PDT)
<br/>--[[User:Huney Jewell|Huney Jewell]] 07:20, 20 September 2007 (PDT)
== Leap Years ==
Unix time is usable from 1970 to 2037 ... so why does this script's leap year test include handling for centuries that are not multiples of 400 years?
A touch of overkill?

Revision as of 16:08, 11 January 2013

Script didn't compile due to this line:
days = DaysPerMonth(mt++);

Changed that line to:
days = DaysPerMonth(year,mt++);
--Huney Jewell 07:20, 20 September 2007 (PDT)

Leap Years

Unix time is usable from 1970 to 2037 ... so why does this script's leap year test include handling for centuries that are not multiples of 400 years? A touch of overkill?