Hoi_A

Clock no Color

Feb 16th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. local mon = peripheral.wrap( "right" )
  2.  
  3. while true do
  4. local time = os.time()
  5. local formattedTime = textutils.formatTime(time, false)
  6.  
  7. mon.write("It's: " .. formattedTime)
  8. sleep(1)
  9. mon.clear()
  10. mon.setCursorPos(1,1)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment