1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Astronomical time scales and conversions with nanosecond resolution.
//!
//! [`Time`] stores an instant with a type-level [`Scale`]. The scale marker
//! prevents accidental mixing of values while the conversion implementations
//! make changes of scale explicit:
//!
//! ```
//! use anytime::{Time, scales::{TAI, UTC}};
//!
//! let utc = Time::<UTC>::from_jd(2_451_545.0);
//! let tai: Time<TAI> = utc.clone().into();
//! assert_eq!(tai.utc(), utc);
//! ```
//!
//! The crate supports UTC, TAI, GPST, TT, TCG, and UT1. UTC conversions use
//! leap-second data built into the crate. UT1 conversions additionally use
//! Earth-orientation data loaded with [`load_finals2000a`].
//!
//! # Feature overview
//!
//! - Use [`Time::from_jd`], [`Time::from_mjd`], or [`Time::from_gregorian`]
//! to construct a value.
//! - Use [`Time::utc`], [`Time::tai`], and the other scale methods to convert
//! values.
//! - Use [`TimeSeries`] for stored collections or [`TimeSeries::range_iter`]
//! for lazy ranges.
//! - Use [`AnyTime`] when a collection may contain values from multiple scales.
//!
// Astronomical time-scale names intentionally retain their standard acronyms.
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;