Julian day is the continuous count of days since the beginning of the Julian Period. This crate implements a method to convert a JulianDay to and from the chrono's NaiveDate.
JD
)```rust use chrono::NaiveDate; use julianday::JulianDay;
fn main() { let naivedate = NaiveDate::fromymd(2020, 2, 18); let julianday = JulianDay::from(naivedate); let date = julianday.todate(); } ```
MJD
)```rust use chrono::NaiveDate; use julianday::ModifiedJulianDay;
fn main() { let naivedate = NaiveDate::fromymd(2020, 2, 18); let mjd = ModifiedJulianDay::from(naivedate); let date = mjd.todate(); } ```