Crate eluna

Crate eluna 

Source
Expand description

Not-so-precise moon calendar for 1900-2100.

A Rust translation of Minkukel’s algorithm, which is claimed to provide lunar data for a period of 1900-2100.

Input is a timestamp (i64), whether positive or negative. It’s compatible with chrono::DateTime::timestamp() function.

Functions§

fraction
Return fraction of the moon – convert to percent if needed.
moon_day
Return a moon day.
numeric_phase
Return a moon phase as number (0-8).
raw
Return a moon second of the given time (like a day, but second).
verbal_phase
Return a moon phase as a human-readable word or phrase.