Module:Timebomb

require('Module:No globals') local getArgs = require('Module:Arguments').getArgs local lang = mw.language.new(0)

local p = { }

function p.duration(timebomb, compiled) local ts1 = lang:formatDate("U", timebomb) local ts2 = lang:formatDate("U", compiled) return diff end

local function classic(timebomb, compiled) end

local function dynamic(timebomb) end

function p.main(frame) local args = getArgs(frame) if not args.timebomb then return "" end if args.timebomb:byte == '+' then return dynamic(args.timebomb) else return classic(args.timebomb, args.compiled) end end

return p