12,564
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
| Line 63: | Line 63: | ||
local greg_wday = os.date("*t", os.time({["day"] = greg_day, ["month"] = greg_month, ["year"] = greg_year})).wday | local greg_wday = os.date("*t", os.time({["day"] = greg_day, ["month"] = greg_month, ["year"] = greg_year})).wday | ||
if mw.ustring.find(args[1], "([0-9]+)") and mw.ustring.find(args[2], "([0-9]+)") and mw.ustring.find(args[3], "([0-9]+)") then | if args[1] and args[2] and args[3] then | ||
if mw.ustring.find(args[1], "([0-9]+)") and mw.ustring.find(args[2], "([0-9]+)") and mw.ustring.find(args[3], "([0-9]+)") then | |||
greg_year = tonumber(args[3]) | |||
greg_month = tonumber(args[2]) | |||
greg_day = tonumber(args[1]) | |||
p = 4 | |||
end | |||
end | end | ||