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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
//! NAIF/SPICE-aligned astronomical time scales.
//!
//! `stkcraft-time` is a clean-room implementation of the time-scale model
//! described in the NAIF *SPICE Time Subsystem Required Reading*. The
//! leap-second data is read from a NAIF Leapseconds Kernel; no leap
//! second is hard-coded in the conversion logic.
//!
//! # Scales
//!
//! * [`Calendar`] selects Gregorian, Julian or Mixed calendar arithmetic.
//! * [`Epoch`] is the canonical internal value: continuous TAI seconds
//! plus nanoseconds since `2000-01-01T00:00:00 TAI`.
//! * [`UtcDateTime`] is the civil UTC representation, including
//! `23:59:60.x` on positive-leap-second days.
//! * [`Duration`] is an exact signed duration with nanosecond
//! resolution.
//! * [`TimeSeries`] iterates uniformly spaced epochs.
//! * [`convert`] provides UTC, TAI, TT, TDB/ET, GPS and UT1 conversions.
//! * [`coord`] provides the IAU coordinate scales TCG and TCB.
//! * [`dtdb`] provides the IAU Fairhead-Bretagnon TDB model.
//! * [`eop`] holds the IERS Earth Orientation Parameters that UT1 requires.
//!
//! # Kernel selection
//!
//! Every UTC conversion is a pure function of the leap-second kernel
//! that is loaded. There is no globally implied kernel and no leap
//! second is hard-coded in the conversion logic. Load the kernel you
//! intend to use with [`LeapSecondTable::from_lsk`]; the bundled
//! [`LeapSecondTable::builtin`] is only a snapshot of `naif0012.tls`.
//! Two kernels with different `DELTET/DELTA_AT` lists produce different
//! `TAI - UTC` after the first differing date. [`LeapSecondTable::coverage`]
//! reports which dates a kernel actually covers.
//!
//! # Accuracy
//!
//! Internal epoch arithmetic is integer-based, and the nanosecond field
//! is exactly that: a step of the internal representation, not a claim
//! of nanosecond accuracy. Real accuracy is bounded by the model and the
//! data:
//!
//! * The leap-second kernel supplies whole-second steps; there is no
//! sub-second leap data to be had.
//! * The TT/TDB model (`TDB - TT = K * sin(E)`) is the NAIF model, whose
//! stated accuracy is about 30 microseconds.
//! * `ET` is an `f64` by definition, exactly as in SPICE.
//!
//! Agreement with CSPICE is a match against a reference engine, not a
//! physical truth claim.
//!
//! # Leap-second policy
//!
//! Leap seconds are data, not code. [`LeapSecondTable`] follows the LSK
//! it was built from. The default [`LeapSecondPolicy::TableDriven`] keeps
//! the last entry in force; a caller may select
//! [`LeapSecondPolicy::FrozenAfter`] to model an explicit assumption. The
//! crate never infers a policy from a date.
extern crate alloc;
pub use Calendar;
pub use Duration;
pub use ;
pub use ;
pub use TimeError;
pub use ;
pub use ;
pub use TimeSeries;
pub use TimeScale;