Advertisement
DonnyKerstens

Untitled

Jan 16th, 2022
896
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local time = os.time()
  2. local day = os.day()
  3. local year = day/365
  4. local dayFinal = day%365
  5.  
  6. mon = peripheral.wrap("right")
  7. mon.setTextScale(3,4)
  8.  
  9. while true do
  10.     mon.clear()
  11.     mon.setCursorPos(1,1)
  12.     time = os.time()
  13.     day = os.day()
  14.     mon.write(textutils.formatTime(time))
  15.     mon.setCursorPos(1,2)
  16.     mon.write("Year:")
  17.     mon.write(tostring(math.floor(year)))
  18.     mon.write("Year:")
  19.     mon.write(tostring(dayfinal))
  20.     sleep(1)
  21. end
  22.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement