1. Miki Tebeka
  2. py-timeat


Miki Tebeka  committed 6c3518b

Minor cleanup

  • Participants
  • Parent commits 16fec06
  • Branches default
  • Tags v1.0.1

Comments (0)

Files changed (2)

File setup.py

View file
  • Ignore whitespace
-    version='1.0.0',
+    version='1.0.1',
     description='Show local time at given location',
     author='Miki Tebeka',

File timeat.py

View file
  • Ignore whitespace
 # Using Google maps API to get the current time at a given location
 from socket import AF_INET, SOCK_DGRAM, socket, error as SocketError
-from time import time, gmtime, strftime
+from time import time
 from datetime import datetime
 import json
 import struct
 import sys
-__version__ = '1.0.0'
+__version__ = '1.0.1'
 if sys.version_info[:2] >= (3, 0):
     from urllib.request import urlopen
 def timeat(location):
-    '''Get local time at location, returns an interable of (place, time)'''
+    '''Get local time at location, returns an iterable of (place, time)'''
     query = urlencode([('address', location)])
     url = '{}?{}'.format(geo_url, query)
     loc_resp = get_json(url)