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:27, 14 November 2023 (else hidden). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- 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"
else
	return "HIDDEN"
end