LISWiki will be closing, due to lack of participation, on July 1, 2019. |
Template:Gregorian serial date
From LISWiki
{{#expr:
+ ((2019 - 1) * 365) + (((2019 - 1) - ((2019 - 1) mod 4)) / 4) - (((2019 - 1) - ((2019 - 1) mod 100)) / 100) + (((2019 - 1) - ((2019 - 1) mod 400)) / 400)
+ {{ #ifexpr: (03 - 1) < 8 | ( (03 - 1) * 30.5 round 0) | ( (03 - 1) * 30.5 + 0.9 round 0 ) }} - {{ #ifexpr: (03 <= 2) | 0 | {{ #ifexpr: (2019 / 4) = (2019 / 4 round 0) and (2019 / 100 != 2019 / 100 round 0) | 1 | 2 }} }} + {{ #ifexpr: (03 <= 2) | 0 | {{ #ifexpr: (2019 / 400) = (2019 / 400 round 0) | 1 | 0 }} }} + 13 }}{{#ifexpr: 2019 < 1 | _ERROR - Can not handle dates before January 1, 1 A.D. }}Template:Documentation