Advertisement
Paragorn

Advent 13

Dec 14th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. Monitor = peripheral.wrap("top")
  2. Monitor.setTextScale(4)
  3.  
  4. while true do
  5.  --Vorbereitungen
  6.  Monitor.clear()
  7.  Zeit = os.time()
  8.  Tag = os.day()
  9.  Zeit = textutils.formatTime(Zeit, true)
  10.  --Uhrzeit
  11.  Monitor.setCursorPos(2,1)
  12.  Monitor.write(Zeit)
  13.  --Datum
  14.  Monitor.setCursorPos(1,2)
  15.  Monitor.write("Welttag")
  16.  Monitor.setCursorPos(1,3)
  17.  Monitor.write(Tag.."")
  18.  sleep(0.75)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement