Module:Sandbox/2NumForIce/!/wb sw time
Appearance
-- os.date &w is Sun/Mon/.../Fri/Sat, 0-5. Use UTC!
status = true -- for now
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
return "SCHOOL"
elseif status == true and tonumber(os.date("%H")) >= 6 and tonumber(os.date("%H")) <= 14 then
return "SLEEP"
end