Advertisement
Guest User

fixedfixedfixedfixedfixedfixed

a guest
Dec 16th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. local time = os.time()
  2. local day = os.day()
  3. local year = day/365
  4.  
  5. monitor01 = peripheral.wrap("back")
  6. monitor01.setTextScale(3.4)
  7.  
  8.  
  9. while true do
  10. monitor01.clear()
  11. monitor01.setCursorPos(12,1)
  12. time = os.time()
  13. day = os.day()
  14. monitor01.write(textutils.formatTime(time))
  15. monitor01.setCursorPos(8,2)
  16. monitor01.write("Year:")
  17. monitor01.write(tostring(math.floor(year)))
  18. monitor01.write(" Day:")
  19. monitor01.write(tostring(dayfinal))
  20. sleep(1)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement