Module:Sandbox/Angr pukhlya/2/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
local p = {}
 
p.odate_formatting = function( frame )
-- Unpacking date in not iso-format
local date = frame.args.date
months = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
local year, day = string.match(date, "%D*(%d*)%D*(%d*)%D*")
if year ~= nil and day ~= nil then
Line 11 ⟶ 10:
end
end
months = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
local k = nil
local month = nil
Line 53:
month = b
else
day, month, year = a, months[b], c
end
end
if day == nil then
day = ""
end
if month == nil then
month = ""
end
if year == nil then
year = ""
end
return "Day = " .. day .. "<br>" ..