Content deleted Content added
Cyborg Coder (talk | contribs) No edit summary |
Cyborg Coder (talk | contribs) No edit summary |
||
Line 41:
local d, y = date:match("(%d+)%D+(%d+)")
local mnth = date:match("%a+") or ""
d, y = tonumber(d) or 1, tonumber(y) or 0
local m = month_idx[mnth:sub(1,3):lower()] or 0
local v = day_try(d, m, y)
▲ m = string.upper(string.sub(m, 1, 1)) .. string.sub(m, 2)
local out = date .. " = " .. d .. " " .. m .. " " .. y .. " " .. mnth
out = out .. " = " .. v
|