Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitor.peripheral.wrap("top")
- monitor.setTextScale(5)
- while true do
- local day = os.day()
- local doy = math.floor(doy%)
- local dom = math.floor(doy%(365.2425/12))+1
- local month = math.floor(doy/(365.2425/12))+1
- local year = math.floor(day/365.2425)+1
- local weekday = "D"..math.floor((day%7)+1)
- local date = year.."/""month.."/"..dom
- local time = os.time()
- local time2 = os.time()*60*60
- local seconds = math.floor(time2%10)
- local sec10 = math.floor((time2/10)%6)
- time = textutils.formatTime(time,true)
- local weekdaytime = weekday.." "..time..":"..sec10..seconds
- monitor.write(date)
- monitor,setCursorPos(1,2)
- monitor.write(weekdaytime)
- sleep(0.001)
- monitor.clear()
- monitor.setCursorPos(1,1)
- end
Add Comment
Please, Sign In to add comment