Struct Time Copy item path Source pub struct Time<S: TimeScale > { }Expand description A point on time scale S.
Internally stores a single Days quantity whose interpretation depends on
S: TimeScale. The struct is Copy and zero-cost: PhantomData is
zero-sized, so Time<S> is layout-identical to Days (a single f64).
Returns ΔT = TT − UT in seconds for this UT epoch.
This is a convenience accessor; the same correction is applied
automatically when converting to any TT-based scale (.to::<JD>()).
Create from a raw scalar (days since the scale’s epoch).
Create from a Days quantity.
The underlying quantity in days.
The underlying scalar value in days.
Absolute Julian Day (TT) corresponding to this instant.
Absolute Julian Day (TT) as scalar.
Build an instant from an absolute Julian Day (TT).
Convert this instant to another time scale.
The conversion routes through the canonical JD(TT) intermediate:
For pure epoch-offset scales this compiles down to a single
addition/subtraction.
Convert to a chrono::DateTime<Utc>.
Inverts the ΔT correction to recover the UTC / UT timestamp.
Returns None if the value falls outside chrono’s representable range.
Build an instant from a chrono::DateTime<Utc>.
The UTC timestamp is interpreted as Universal Time (≈ UT1) and the
epoch-dependent ΔT correction is applied automatically, so the
resulting Time<S> is on the target scale’s axis.
Mean (midpoint) between two instants on the same time scale.
J2000.0 epoch: 2000-01-01T12:00:00 TT (JD 2 451 545.0).
One Julian year expressed in days.
One Julian century expressed in days.
One Julian millennium expressed in days.
Julian millennia since J2000.0 (used by VSOP87).
Julian centuries since J2000.0 (used by nutation, precession, sidereal time).
Julian years since J2000.0.
Converts JD(TT) → JD(TDB) using the Fairhead & Bretagnon (1990)
expression for TDB − TT.
The dominant term has an amplitude of ≈1.658 ms. This implementation
includes the four largest periodic terms plus a secular component,
matching the formula recommended by USNO Circular 179 (Kaplan 2005)
and consistent with IAU 2006 Resolution B3.
Accuracy: better than 30 μs for dates within ±10 000 years of J2000.
§ References
Fairhead & Bretagnon (1990), A&A 229, 240
USNO Circular 179, eq. 2.6
SOFA iauDtdb (full implementation has hundreds of terms)
Convenience: MJD value corresponding to this JD.
Kept as a convenience wrapper for self.to::<MJD>().
The resulting type after applying the + operator.
The resulting type after applying the + operator.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more The resulting type after applying the / operator.
The resulting type after applying the / operator.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more The resulting type after applying the - operator.
The resulting type after applying the - operator.
The duration type used for arithmetic operations.
Convert this time instant to UTC DateTime.
Create a time instant from UTC DateTime.
Compute the difference between two time instants.
Add a duration to this time instant.
Subtract a duration from this time instant.
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.