Jump to content

Module:Sandbox/2NumForIce/!/wb sw time

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 2NumForIce (talk | contribs) at 05:26, 14 November 2023 (for wikibreak and status templates). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- 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