Template:Days in month

From OLPC
Revision as of 00:02, 10 February 2008 by Sj (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

30


Takes a month and year and returns the # of days in the month. Assumes current date if none is given. Currently broken, since the switch isn't working.

month 06 year 2024
current : 06 and Template:MONTHNUMBER to avoid the 0
vanilla switch 6
isleapyear 1
ifcheck 1
leapcheck 28
switch new 30


See also Template:Age calculator and Template:IsLeapYear.