此模块的文档可以在模块:Timer/doc创建
local p = {} function p.countdown(frame) local targetDate = os.time{year=2025, month=4, day=20} local currentDate = os.time() local diff = targetDate - currentDate return tostring(math.floor(diff / 86400)) .. "天剩余" end return p