Crates.io | eluna |
lib.rs | eluna |
version | 0.1.2 |
source | src |
created_at | 2021-12-07 13:29:34.938316 |
updated_at | 2021-12-08 10:30:53.012871 |
description | Not-so-precise moon calendar for 1900-2100 |
homepage | |
repository | https://github.com/bebyx/eluna |
max_upload_size | |
id | 493854 |
size | 13,600 |
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.
Add this line to Cargo.toml
to include eluna as a dependency:
eluna = "0.1"