Skip to main content

Crate deep_time

Crate deep_time 

Source

Re-exports§

pub use error::DtErr;
pub use error::DtErrKind;

Modules§

constants
error
historical_sofa
leap_seconds
Leap seconds table from the official IANA leap-seconds.list Updated through IERS Bulletin C as of April 2026. Last leap second: 2017-01-01 (TAI-UTC = 37 s) File expires: 28 December 2026
tzdb
This module is auto-generated from the IANA Time Zone Database found at: https://www.iana.org/time-zones Source directory: tzdata2026a It provides both a minimal mode (UTC + identical zones only) and a full mode (tz feature) which has full historical transitions.
utils

Macros§

an_err
Ergonomic constructor and chaining macro for AnErr.

Structs§

AnErr
A compact, Copy, zero-allocation error type that records a parallel stack of error kinds, source locations, and per-level human-readable reasons.
AsciiStr
Fixed-capacity, stack-only ASCII string stored in a single [u8; N] array.
ClockDrift
Quadratic polynomial that describes the accumulated difference between an observer’s proper time (the time measured by a real clock moving through spacetime) and a chosen coordinate time such as TT, TAI, or any other Scale.
ClockModel
A fully self-describing relativistic time scale.
Dt
Dt, and the library, is in the process of being switched from the sec and subsec fields being related to the scale, TO the sec and subsec fields always being TAI Epoch 2000-01-01 noon. Much of the documentation is outdated and should be ignored.
Every
Builder type that enables the ergonomic start.every(step) syntax.
GregorianTime
UTC Civil calendar and time-of-day components of a Dt.
LightContext
Configuration for the Shapiro delay — the extra time light (or radio signals) takes to travel near a massive body because gravity curves spacetime.
LocalSpacetime
The three local spacetime quantities that fully determine how fast an observer’s proper time advances relative to coordinate time.
ObserverState
A complete relativistic state of an observer (spacecraft, ground station, planet, etc.) at a specific instant.
Position
A 3-dimensional position vector expressed in Cartesian coordinates (x, y, z) with units of meters (SI).
TSpan
A high-precision duration (time span) expressed as seconds + attoseconds (where 1 attosecond = 10⁻¹⁸ s).
TimeParts
TimeRange
An iterator over evenly spaced Dt values.
Velocity
A 3-dimensional velocity vector expressed in Cartesian coordinates (vx, vy, vz) with units of meters per second (SI).
YmdHms
Combined Gregorian date + wall time with subsecond precision.

Enums§

AsciiStrError
Errors returned by AsciiStr operations.
Meridiem
Offset
Scale
Weekday

Traits§

AttosUnits
TimeUnits
Trait that adds ergonomic time-unit methods to integers and floats.

Functions§

to_fs
Converts attoseconds → femtoseconds (fs)
to_ms
Converts attoseconds → milliseconds (ms)
to_ns
Converts attoseconds → nanoseconds (ns)
to_ps
Converts attoseconds → picoseconds (ps)
to_sec
Converts attoseconds → seconds (s)
to_sec_f
to_us
Converts attoseconds → microseconds (us)

Type Aliases§

Real