Crate circadia

source ·
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

An iterator that yields SunEvents that occur after a specified start date.
Represents a position on the earth.
An iterator that yields SunEvents that occur before a specified start date.
Defines a sunset or sunrise at some angle above the horizon (the zenith).
This struct allows one to create iterators over sun events moving forward or backward in time.

Enums

Represents either the sunset or the sunrise.
Defines how the sunset/sunrise is measured in relation to the horizon. See https://www.timeanddate.com/astronomy/different-types-twilight.html

Functions

Calculates the time of the sunrise/sunset on the given date at the given position on the globe.