Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitor = peripheral.wrap("top")
- repeat
- local time = os.time()
- time = textutils.formatTime(time,true)
- if time:len() == 4 then
- monitor.write(" ")
- end
- monitor.write(" "..time.." ")
- monitor.setCursorPos(1,2)
- monitor.write(" "..os.day().." ")
- monitor.setCursorPos(1,1)
- sleep(0.750)
- until False
- print ('clockmo ended')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement