Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.clear()
- term.setCursorPos(1,1)
- local sTime = string.reverse(os.time())
- time = string.sub(sTime, 2)
- print("Day since creation: "..os.day())
- print("Time of day:"..string.reverse(sTime))
- local nTime = os.time()
- if nTime >= 19.5 or nTime < 5.75 then
- print("NIGHT")
- elseif nTime >= 5.75 and nTime < 19.5 then
- print("DAY")
- end
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement