Module:Bengali Unix Timestamp: Difference between revisions

Content deleted Content added
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 1:
local p = {}
local monthMapMONTH = {
January = 1, February = 2, March = 3, April = 4, May = 5, June = 6,
July = 7, August = 8, September = 9, October = 10, November = 11, December = 12
Line 14:
day, month, year = input:match("(%d+)%s+(%a+)%s+(%d+)")
if month then
month = monthMapMONTH[month]
end
end
 
if not (year and month and day) then
return "Invalid date format. Use DD-YYYY-MM-DD or DD Month YYYY."
end