Difference between revisions of "Talk:Unix2DateTime"

From Second Life Wiki
Jump to: navigation, search
(Script compiled with error, correction arises wrong result)
 
m (Error corrected)
Line 2: Line 2:
 
<br/><code>    days = DaysPerMonth(mt++);</code>
 
<br/><code>    days = DaysPerMonth(mt++);</code>
  
Changing that line to:
+
Changed that line to:
<br/><code>    days = DaysPerMonth(mt++,year);</code>
+
<br/><code>    days = DaysPerMonth(year,mt++);</code>
<br/>avoids compile error, but computes wrong result. I don't know the reason.
+
 
<br/>--[[User:Huney Jewell|Huney Jewell]] 07:20, 20 September 2007 (PDT)
 
<br/>--[[User:Huney Jewell|Huney Jewell]] 07:20, 20 September 2007 (PDT)

Revision as of 06:55, 20 September 2007

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)