Module nyx_space::time [−][src]
Expand description
Re-export of hifitime
Modules
Structs
ClockNoise adds true clock drift to a given Duration measurement. For example, if a vehicle is
measuring the time of flight of a signal with high precision oscillator, the engineering
specifications will include the oscillator stability. This specification bounds the preciseness
of time span calculations. On very short time spans, i.e. less than a few minutes, clock drift
is usually negligible. However, in several high fidelity systems the clock drift may lead to
a significant error (e.g. several kilometers in two-way radar ranging). This module allows high
fidelity simulation systems to test the resilience of algorithms with oscillator stability.
The constructors here are specified in parts per million: for a parts per billion specification
simply multiply the value by 1e-3
.
NOTE: Clock stability is not linear. If a clock is rated at stable within 15 ppm per
fifteen minute interval this does not correspond to 1 ppm per minute.
Defines generally usable durations for high precision math with Epoch (all data is stored in seconds)
Defines an Epoch in TAI (temps atomique international) in seconds past 1900 January 01 at midnight (like the Network Time Protocol).
An iterator of a sequence of evenly spaced Epochs.
Enums
Errors handles all oddities which may occur in this library.
Enum of the different time systems available
Constants
DAYS_PER_CENTURY
corresponds to the number of days per centuy in the Julian calendar.
DAYS_PER_YEAR
corresponds to the number of days per year in the Julian calendar.
The Ephemeris Time epoch, in seconds
J1900_OFFSET
determines the offset in julian days between 01 Jan 1900 at midnight and the
Modified Julian Day at 17 November 1858.
NOTE: Julian days “start” at noon so that astronomical observations throughout the night
happen at the same Julian day. Note however that the Modified Julian Date (MJD) starts at
midnight, not noon, cf. http://tycho.usno.navy.mil/mjd.html.
J2000_OFFSET
determines the offset in julian days between 01 Jan 2000 at noon and the
Modified Julian Day at 17 November 1858.
The JDE offset in days
The JDE offset in seconds
Modified Julian Date in seconds as defined here. MJD epoch is Modified Julian Day at 17 November 1858 at midnight.
SECONDS_PER_DAY
defines the number of seconds per day.
SECONDS_PER_HOUR
defines the number of seconds per hour.
SECONDS_PER_MINUTE
defines the number of seconds per minute.
SECONDS_PER_SIDERAL_YEAR
corresponds to the number of seconds per sideral year from NIST.
SECONDS_PER_TROPICAL_YEAR
corresponds to the number of seconds per tropical year from NAIF SPICE.
SECONDS_PER_YEAR
corresponds to the number of seconds per julian year from NAIF SPICE.
Traits
A trait to automatically convert some primitives to a duration
Functions
Returns true if the provided Gregorian date is valid. Leap second days may have 60 seconds.