mirror of
https://github.com/dh1tw/pyhamtools.git
synced 2025-12-06 06:52:00 +01:00
updated example code
This commit is contained in:
parent
bd22b50e33
commit
dc4664591f
|
|
@ -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
|
||||||
|
|
||||||
Loading…
Reference in a new issue