Rolcam

Basic Time Prog

Jun 20th, 2021 (edited)
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. mon = peripheral.wrap("top")
  2. term.redirect(mon)
  3. mon.setTextScale(2)
  4. while true do
  5.     local time = os.time()
  6.     local formattedTime = textutils.formatTime(time, false)
  7.     term.clear()
  8.     term.setCursorPos(1,1)
  9.     print(formattedTime)
  10.     sleep(0.1)
  11. end
Add Comment
Please, Sign In to add comment