Advertisement
Sim_Piko

[CC]zegar

Aug 15th, 2014
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. monitor = peripheral.wrap("top")
  2. repeat
  3. local time = os.time()
  4. time = textutils.formatTime(time,true)
  5. if time:len() == 4 then
  6. monitor.write(" ")
  7. end
  8. monitor.write(" "..time.." ")
  9. monitor.setCursorPos(1,2)
  10. monitor.write(" "..os.day().." ")
  11. monitor.setCursorPos(1,1)
  12. sleep(0.750)
  13. until False
  14. print ('clockmo ended')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement