if os.time() < 1700 then
print("night time")
elseif os.time() > 1700 then
print("day time")
end
end
[help] time based lock program
Started by rex41043, Apr 11 2012 08:52 PM
1 reply to this topic
#1
Posted 11 April 2012 - 08:52 PM
i was working on a program that can tell time but i cant get it to work heres the code
#2
Posted 11 April 2012 - 08:58 PM
the output from os.time() is in decimals, so 8 am = 8.0 1700 would be 17
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











