From Wikipedia, the free encyclopedia

-- 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.args1 == "true" then

		return "User:2NumForIce/UserStatusShort/school"

	else

		return "SCHOOL"

	end

elseif frame.args1 == "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
From Wikipedia, the free encyclopedia

-- 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.args1 == "true" then

		return "User:2NumForIce/UserStatusShort/school"

	else

		return "SCHOOL"

	end

elseif frame.args1 == "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

Videos

Youtube | Vimeo | Bing

Websites

Google | Yahoo | Bing

Encyclopedia

Google | Yahoo | Bing

Facebook