[−][src]Crate esbat
esbat provides functions for lunar phase calculations.
The algorithms are as published in Calendrical Calculations: The Ultimate Edition by Edward M. Reingold and Nachum Dershowitz, used with permission. The book notes:
... the algorithms are centered around the present date, for which they are accurate to within about 2 minutes. Their accuracy decreases for the far-distant past or future.
License
This crate uses a non-commercial license, a Creative Commons Attribution-NonCommercial 4.0 International License, at the request of the authors of Calendrical Calculations. Please contact the author of this crate at iliana@buttslol.net for any licensing questions.
Structs
DailyIter | Principal phase iterator by day. |
Iter | Principal phase iterator. |
Enums
Phase | The eight principal and intermediate phases of the Moon. |
PrincipalPhase | The four principal phases of the Moon. |
Functions
daily_lunar_phase | Calculates the lunar phase for a given date. |
daily_lunar_phase_iter | Returns an iterator of principal phases and the days they fall on. |
lunar_phase | Calculates the lunar phase for a given moment. |
lunar_phase_iter | Returns an iterator of principal phases and their moments. |