Module:IUCDate
可在Module:IUCDate/doc创建此模块的帮助文档
local module = {}
local origin = os.time({year=2022,month=4,day=1,hour=22,minute=13})
function module.test()
local now = os.time()
mw.log(now)
return now
end
function module.isSpecialYear(year)
-- 判断是否要减去1微
if (year % 4 == 0) then
return true
elseif ((year - 1) % 200 == 0) then
return true
else
return false
end
end
function module.timeDelta(time)
return os.time(time) - origin
end
return module