Expand description
This crate provides a simple interface to compute information about the sunrise and sunset on arbitrary dates at any position on the earth.
Structs§
- Forecasted
SunEvents - An iterator that yields SunEvents that occur after a specified start date.
- Global
Position - Represents a position on the earth.
- Historic
SunEvents - An iterator that yields SunEvents that occur before a specified start date.
- SunEvent
- Defines a sunset or sunrise at some angle above the horizon (the zenith).
- SunEvents
- This struct allows one to create iterators over sun events moving forward or backward in time.
Enums§
- Event
- Represents either the sunset or the sunrise.
- Zenith
- Defines how the sunset/sunrise is measured in relation to the horizon. See https://www.timeanddate.com/astronomy/different-types-twilight.html
Functions§
- time_
of_ event - Calculates the time of the sunrise/sunset on the given date at the given position on the globe.