Module:2NumForIce/wb sw time explained

-- os.date &w is Sun/Mon/.../Fri/Sat, 0-5. Use UTC!local p = --p stands for package

function p.wb_sw_time(frame)if tonumber(os.date("%w")) >= 1 and tonumber(os.date("%w")) <= 5 and tonumber(os.date("%H")) >= 16 and tonumber(os.date("%H")) <= 23 then if frame.args[1]

"true" then return "User:2NumForIce/UserStatusShort/school" else return "SCHOOL" endelseif frame.args[1]

"true" and tonumber(os.date("%H")) >= 6 and tonumber(os.date("%H")) <= 14 then return "User:2NumForIce/UserStatusShort/sleeping"else return "HIDDEN"end end return p