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.