Expand description
Modules§
- constats
- Typed epoch and offset constants.
- eop
- Daily IERS Earth Orientation Parameters from the compiled
finals2000A.allseries. - scalar
- Scalar-value adapter for time scale dispatch.
Structs§
- Encoded
Time - A typed external representation of a
Time<S>instant. - GPS
- GPS seconds since the GPS epoch on the TAI/GPS continuous axis.
- Interval
- Half-open time interval
[start, end). - J2000s
- J2000 seconds on the source scale’s coordinate axis.
- JD
- Julian Day on the source scale’s coordinate axis.
- MJD
- Modified Julian Day on the source scale’s coordinate axis.
- TAI
- International Atomic Time. Continuous SI-second clock.
- TCB
- Barycentric Coordinate Time (IAU 2006 B3). Linear relation to TDB.
- TCG
- Geocentric Coordinate Time (IAU 2000 B1.9). Linear rate difference to TT.
- TDB
- Barycentric Dynamical Time.
- TT
- Terrestrial Time. The dynamical reference scale in this crate.
- Time
- A point in time on scale
S. - Time
Context - Explicit, immutable context for conversions that need one.
- UT1
- Universal Time 1 — Earth-rotation time axis.
- UTC
- Coordinated Universal Time.
- Unix
- POSIX seconds on the UTC civil axis.
Enums§
- Conversion
Error - Conversion error surface.
- Invalid
Interval Error - Error constructing an
Intervalwith invalid bounds. - Period
List Error - Invariants on a period list.
- Scale
Kind - Identifies a time scale or scalar encoding for dispatch.
- Time
Data Error - Error surface for runtime time-data operations.
Constants§
- DELTA_
T_ PREDICTION_ HORIZON_ MJD - MJD of the last compiled ΔT prediction point.
- EOP_
END_ MJD - EOP_
OBSERVED_ END_ MJD - EOP_
START_ MJD - GPS_
EPOCH_ JD_ TAI - GPS epoch expressed as a Julian Day on the TAI axis.
- GPS_
EPOCH_ JD_ UTC - GPS epoch as a Julian Day on the UTC axis: 1980-01-06T00:00:00 UTC.
- GPS_
EPOCH_ TAI_ MINUS_ UTC - Exact
TAI - UTCoffset at the GPS epoch. - J2000_
TT - J2000.0 epoch as a TT-scale Julian Date (JD(TT) = 2 451 545.0).
- JULIAN_
YEAR_ DAYS - Length of a Julian year in days (exactly 365.25 d).
- MODERN_
DELTA_ T_ OBSERVED_ END_ MJD - UTC_
DEFINED_ FROM_ MJD - First MJD covered by the compiled UTC-TAI segment table.
Traits§
- Context
Conversion Target - Unified context-backed conversion target for
Time<S>::to_with::<T>(&ctx). - Continuous
Scale - Witness that a scale is both coordinate-bearing and physically continuous.
- Conversion
Target - Unified conversion target for
Time<S>::try_to::<T>(). - Coordinate
Scale - Witness that a scale is continuous and supports direct arithmetic.
UTCdeliberately does not implement this: it has raw-axis accessors throughCoordinateScale, but its civil interpretation remains leap-second-aware and table-driven. - Infallible
Conversion Target - Unified infallible conversion target for
Time<S>::to::<T>(). - Infallible
Representation ForScale - Representation witness for scale
Swith context-free round-trips. - Representation
ForScale - Representation witness for scale
S. - Scale
- Marker trait for a scientifically distinct time scale.
- Time
Instant - Provides arithmetic on
Time<S>values via seconds duration. - Time
Representation - Marker trait for external time encodings such as JD or Unix time.
Functions§
- complement_
within - Gaps inside
outerthat are not covered by any interval inperiods. - delta_
t_ seconds - ΔT = TT − UT1, in seconds, for a Julian Day on the UT1 axis.
- delta_
t_ seconds_ extrapolated - ΔT = TT − UT1, in seconds, with quadratic tail-fit extrapolation beyond the last published prediction point.
- scalar_
add_ days - Add a day-valued duration to a scalar in the given scale.
- scalar_
difference_ in_ days - Compute the difference between two scalar values in the same scale, in days.
- time_
tt_ from_ scalar - Convert a scalar in the given scale to
Time<TT>. - time_
tt_ to_ scalar - Convert a
Time<TT>value to a scalar in the given scale.
Type Aliases§
- GpsTime
EncodedTime<TAI, GPS>convenience alias.- Invalid
Period Error - Backward-compatible alias for period construction validation errors.
- J2000
Seconds EncodedTime<S, J2000s>convenience alias.- Julian
Date EncodedTime<S, JD>convenience alias.- Modified
Julian Date EncodedTime<S, MJD>convenience alias.- Period
- Typed time period on a given scale.
- Unix
Time EncodedTime<UTC, Unix>convenience alias.