Module:Mallian time: Difference between revisions

Created page with "function t3(n) if n == 0 then return "0" end local result = "" while n > 0 do result = ("012346789"):sub((n % 9) + 1, (n % 9) + 1) .. result n = math.floor(n / 9) end return result end function mallianDecimalTime(showDecimals) showDecimals = showDecimals ~= false local date = os.date("!*t") local timeInMilliseconds = ((date.hour * 60 + date.min) * 60 + date.sec) * 1000 + 25661000 local time = (timeInMilliseconds % 8640..."
 
No edit summary
 
Line 1: Line 1:
local p = {}
function t3(n)
function t3(n)
     if n == 0 then return "0" end
     if n == 0 then return "0" end
Line 23: Line 25:
end
end


return mallianDecimalTime(true)
function p.main()
return mallianDecimalTime(true)
end
 
return p