Jump to content

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

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by 2NumForIce (talk | contribs) at 06:58, 30 August 2024 (@2NumForIce: be bold. just remove it.). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- 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 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