Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- example = http.get("http://www.timeapi.org/gmt/in+2+hours")
- everything = tostring(example.readAll())
- example.close()
- date = string.sub(everything, 1,10)
- time = string.sub(everything, 12,19)
- --print("It is now ", time, " ", date, " in Holland")
- mon = peripheral.wrap("top")
- term.redirect(mon)
- mon.setTextScale(2)
- mon.setCursorPos(15,1)
- print("Holland")
- mon.setCursorPos(2,2)
- print(time, " ", date)
- example = http.get("http://www.timeapi.org/gmt/5+hours+ago")
- everything = tostring(example.readAll())
- example.close()
- date = string.sub(everything, 1,10)
- time = string.sub(everything, 12,19)
- --print("It is now ", time, " ", date, " in 'Murica")
- mon.setCursorPos(15,4)
- print("America")
- mon.setCursorPos(2,5)
- print(time, " ", date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement