updated example code

This commit is contained in:
dh1tw 2015-12-30 19:55:51 +01:00
parent bd22b50e33
commit dc4664591f

View file

@ -27,6 +27,7 @@ def latlong_to_locator (latitude, longitude):
>>> from pyhamtools.locator import latlong_to_locator >>> from pyhamtools.locator import latlong_to_locator
>>> latitude = 48.5208333 >>> latitude = 48.5208333
>>> longitude = 9.375 >>> longitude = 9.375
>>> latlong_to_locator(latitude, longitude)
'JN48QM' 'JN48QM'
Note: Note:
@ -355,4 +356,3 @@ def calculate_sunrise_sunset(locator, calc_date=datetime.utcnow()):
if sunset: if sunset:
result['sunset'] = sunset.replace(tzinfo=UTC) result['sunset'] = sunset.replace(tzinfo=UTC)
return result return result