Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.setCursorPos(1,1)
- timeHandle = http.get("http://www.timeapi.org/utc/in+one+hours")
- time = timeHandle.readLine()
- day=tonumber(time:sub(9, 10))
- month=tonumber(time:sub(6, 7))
- hour=tonumber(time:sub(12, 13))
- minute=tonumber(time:sub(15, 16))
- sec=tonumber(time:sub(18, 19))
- term.clear()
- print(day,".",month,".2015")
- print(hour,":",minute)
- sleep(1)
- end
Add Comment
Please, Sign In to add comment