Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local time = os.time()
- local day = os.day()
- local year = day/365
- local dayfinal = day % 365
- -- set "bottom" to whatever side you want the monitor attached to (remember don't type this in it's just tips :P)
- monitor01 = peripheral.wrap("bottom")
- --set v this v to whetever you want 3.4 is nice for a 1 tall by 4 long monitor setup
- monitor01.setTextScale(3.4)
- while true do
- monitor01.clear()
- monitor01.setCursorPos(12,1)
- time = os.time()
- day = os.day()
- monitor01.write(textutils.formatTime(time))
- monitor01.setCursorPos(8,2)
- monitor01.write("Year:")
- monitor01.write(tostring(math.floor(year)))
- monitor01.write(" Day:")
- monitor01.write(tostring(dayfinal))
- sleep(1)
- end
Add Comment
Please, Sign In to add comment