pub enum ScaleKind {
JdTt,
MjdTt,
JdTdb,
JdTai,
JdTcg,
JdTcb,
JdGps,
JdUt1,
Unix,
}Expand description
Identifies a time scale or scalar encoding for dispatch.
ScaleKind is the Rust-native counterpart to C ABI scale identifiers.
FFI adapters map their own integer discriminants to ScaleKind and then
delegate all conversion logic to time_tt_from_scalar and
time_tt_to_scalar rather than reimplementing the dispatch matrix.
Variant names follow the <Format><Scale> convention: the prefix names
the encoding format (e.g. Jd = Julian Day, Mjd = Modified Julian Day)
and the suffix names the time scale (e.g. Tt, Tai, Tdb).
Variants§
JdTt
Julian Day on the TT axis (equivalently: Julian Ephemeris Date). Value in days.
MjdTt
Modified Julian Day on the TT axis. Value in days.
JdTdb
Julian Day on the TDB axis. Value in days.
JdTai
Julian Day on the TAI axis. Value in days.
JdTcg
Julian Day on the TCG axis. Value in days.
JdTcb
Julian Day on the TCB axis. Value in days.
JdGps
Julian Day offset from the GPS epoch, on the TAI axis.
The unit is Julian days (not GPS seconds). A value of 1.0
represents one Julian day (86 400 s) elapsed since the GPS epoch.
This is distinct from conventional GPS time which is expressed in
integer seconds or (week, seconds-of-week). Divide by 86 400 to
convert from GPS seconds to this encoding.
JdUt1
Julian Day on the UT1 axis. Value in days.
Unix
Unix / POSIX time in seconds since 1970-01-01T00:00:00 UTC.