Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. local time = os.time()
  2. local day = os.day()
  3. local year = day/365
  4. local dayfinal = day % 365
  5.  
  6. monitor01 = peripheral.wrap("top")
  7. monitor01.setTextScale(3.4)
  8.  
  9. while true do
  10. monitor01.clear()
  11. monitor01.setCursorOis(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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement