Advertisement
Guest User

Untitled

a guest
Apr 10th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. i = require('internet')
  2.  
  3. print("Enter a timezone:")
  4.  
  5. local timezone = io.read()
  6.  
  7. for chunk in i.request("http://www.timeapi.org/"..timezone.."/now?format=%25Y-%25m-%25d%20%25H:%25M:%25S") do
  8.     print(chunk)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement