kreezxil

wth

Oct 27th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. monitor.peripheral.wrap("top")
  2. monitor.setTextScale(5)
  3. while true do
  4. local day = os.day()
  5. local doy = math.floor(doy%)
  6. local dom = math.floor(doy%(365.2425/12))+1
  7. local month = math.floor(doy/(365.2425/12))+1
  8. local year = math.floor(day/365.2425)+1
  9. local weekday = "D"..math.floor((day%7)+1)
  10. local date = year.."/""month.."/&­quot;..dom
  11. local time = os.time()
  12. local time2 = os.time()*60*60
  13. local seconds = math.floor(time2%10)
  14. local sec10 = math.floor((time2/10)%6)
  15. time = textutils.formatTime(time,true)
  16. local weekdaytime = weekday.." "..time..":"..sec10..seco­nds
  17. monitor.write(date)
  18. monitor,setCursorPos(1,2)
  19. monitor.write(weekdaytime)
  20. sleep(0.001)
  21. monitor.clear()
  22. monitor.setCursorPos(1,1)
  23. end
Add Comment
Please, Sign In to add comment