Skip to content

Instantly share code, notes, and snippets.

@agrif
Created October 17, 2024 23:16
Show Gist options
  • Save agrif/60c5dca1dd546d23b183cb64cc9dbbfc to your computer and use it in GitHub Desktop.
Save agrif/60c5dca1dd546d23b183cb64cc9dbbfc to your computer and use it in GitHub Desktop.
let eop =
frameshift::provider::CelestrakProvider::from_csv(std::fs::File::open("EOP-All.csv")?)?;
println!("J2000 = {}", frameshift::time::epoch::J2000.to_tai());
println!("J2000 = {}", frameshift::time::epoch::J2000.to_tt());
println!(
"J2000 = {}",
frameshift::time::epoch::J2000
.to_tai()
.to_utc_with(&eop)
.unwrap()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment