Rwd208

Computer time program

Apr 14th, 2014
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. repeat
  2. monitor = peripheral.wrap("right")
  3. monitor.setTextScale(3.5)
  4. local nTime = os.time()
  5. monitor.write( "The time is "..textutils.formatTime( nTime, false ) )
  6. sleep(1)
  7. monitor.clear()
  8. monitor.setCursorPos( 1, 1 )
  9. until nil
Advertisement
Add Comment
Please, Sign In to add comment