#moon #lunar #calendar

eluna

Not-so-precise moon calendar for 1900-2100

3 releases

0.1.2 Dec 8, 2021
0.1.1 Dec 7, 2021
0.1.0 Dec 7, 2021

#491 in Date and time

LGPL-3.0

6KB
83 lines

eluna

eluna build status eluna crate

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 timestamp() function.

Outputs are raw (moon second for the given time), fraction of the moon, a moon day, and a phase (numeric or English).

Results are rather precise, when close to 2000, but may be quite approximate for the distant dates.

Install

Add this line to Cargo.toml to include eluna as a dependency:

eluna = "0.1"

lib.rs:

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.

Dependencies

~51KB