[−][src]Crate circadia
This crate provides a simple interface to compute information about the sunrise and sunset on arbitrary dates at any position on the earth.
Structs
ForecastedSunEvents | An iterator that yields SunEvents that occur after a specified start date. |
GlobalPosition | Represents a position on the earth. |
HistoricSunEvents | 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. |