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