Advertisement
colhaydutu

clock

Oct 17th, 2023 (edited)
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. local monitor = peripheral.wrap("top")
  2.  
  3. while true do
  4. local time = os.time()
  5. monitor.clear()
  6. monitor.setCursorPos(1, 1)
  7. monitor.setBackgroundColor(colors.blue)
  8. monitor.write(textutils.formatTime(time, bTwentyFourHour))
  9. sleep(0.75)
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement