mirror mirror crates.io docs.rs

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.

Julian Day (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(); } ```

Modified Julian Day (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(); } ```