use chrono::{TimeZone, Utc};
use flare::Time;
fn main() {
let time = Time::new(2021, 6, 21, 12, 0, 0);
let time_jd = time.to_jd();
println!("The Julian Date of the time is: {}", time_jd);
let time_from_jd = Time::from_jd(2459376.0);
println!("The time from the Julian Date is: {}", time_from_jd);
let current_time = Time::now();
println!("{}", current_time);
let chrono_utc = Utc.with_ymd_and_hms(2020, 1, 1, 0, 0, 0).unwrap();
let time = Time::from_utc(chrono_utc);
println!("{}", time.to_string(Some("mjd")));
}