matt29979

Computer Craft - Clock

Oct 25th, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. local side = "top" -- change this
  2. if peripheral.getType(side) ~= "monitor" then
  3. print("No monitor on that side")
  4. return -- Neatly exits the program
  5. else
  6. local monitor = peripheral.wrap(side)
  7. term.redirect(monitor)
  8. end
  9.  
  10. Print(("The Current Time is: ") textutils.formatTime(os.time(),true)))
  11. end
Add Comment
Please, Sign In to add comment