Size: 181
Comment:
|
Size: 515
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
The constructor takes three positional arguments and one keyword argument. {{{ ss = SunriseSunset(date, lat, lon, zenith='official') }}} There are two callable methods after the class is instantiated. {{{ rise, set = ss.getSunRiseSet() }}} and {{{ isNight = ss.isNight() }}} [[attachment:sunrisesunset.py]] |
Sunrise Sunset
This class will determine the sunrise and sunset. It can use either official, civil, nautical, amateur, or astronomical zenith.
The constructor takes three positional arguments and one keyword argument.
ss = SunriseSunset(date, lat, lon, zenith='official')
There are two callable methods after the class is instantiated.
rise, set = ss.getSunRiseSet()
and
isNight = ss.isNight()