Module:Calendar date/recurring
Appearance
--[[
Calculates the Gregorian date of a recurring holiday that varies year-to-year, but follows the rule "Nth [day of week] of [month]"
"month" = month number (1 to 12)
"weeknumber" = number of week (1 to 4, or -1 to mean "last")
"dayofweek" = number that represents the day of the week, where 1 = Sunday and 7 = Saturday
"year" = Gregorian calendar year
]]
require('Module:No globals')
local p = {}
function p.calculate(frame)
local pframe = frame:getParent()
local args = pframe.args
local ONE_DAY = 86400 -- number of seconds in one day
local year = tonumber(args.year)
local month = tonumber(args.month)
return "year = " .. args.year .. ", month = " .. args.month
end
return p