This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local function YearInSec(y) | |
| -- returns seconds of a year | |
| if ((y % 400) == 0) or (((y % 4) == 0) and ((y % 100) ~= 0)) then | |
| return 31622400 -- 366 * 24 * 60 * 60 | |
| else | |
| return 31536000 -- 365 * 24 * 60 * 60 | |
| end | |
| end |