Vodka51200

time

Jun 26th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. monitor = peripheral.find("monitor")
  2.  
  3. while true do
  4.  
  5. local time = os.time()
  6. local formattedTime = textutils.formatTime(time, false)
  7.  
  8. monitor.setTextScale(0.5)
  9. term.setCursorPos(1,1)
  10. term.clear()
  11. print("Il est " .. formattedTime)
  12. sleep(0.8)
  13. end
  14.  
  15. shell.run("monitor","back","time") -- a mettre sur startup
Add Comment
Please, Sign In to add comment