ValueError with example code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
astral |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Windows 7, Python 2.7.11, Astral
The example code at https:/
```
Python 2.7.11 (v2.7.11:
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> from astral import Astral
>>> city_name = 'London'
>>> a = Astral()
>>> a.solar_depression = 'civil'
>>> city = a[city_name]
>>> print('Information for %s/%s\n' % (city_name, city.region))
Information for London/England
>>> timezone = city.timezone
>>> print('Timezone: %s' % timezone)
Timezone: Europe/London
>>> print('Latitude: %.02f; Longitude: %.02f\n' % \
... (city.latitude, city.longitude))
Latitude: 51.50; Longitude: -0.12
>>> sun = city.sun(
>>> print('Dawn: %s' % str(sun['dawn']))
Dawn: 2009-04-22 05:12:06+01:00
```
But when I
Accidentally submitted that too early. I can't see a way to edit it, so please ignore and I'll resubmit.