Module:lnk-date: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
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
greg_year = tonumber(args[3])
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_month = tonumber(args[2])
greg_year = tonumber(args[3])
greg_day = tonumber(args[1])
greg_month = tonumber(args[2])
p = 4
greg_day = tonumber(args[1])
p = 4
end
end
end

Navigation menu