[][src]Module nyx_space::time

Re-export of hifitime

Structs

ClockNoise

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.

Epoch

Defines an Epoch in TAI (temps atomique international) in seconds past 1900 January 01 at midnight (like the Network Time Protocol).

Enums

Errors

Errors handles all oddities which may occur in this library.

Constants

DAYS_PER_YEAR

DAYS_PER_YEAR corresponds to the number of days per year in the Julian calendar.

J1900_OFFSET

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

J2000_OFFSET determines the offset in julian days between 01 Jan 2000 at noon and the Modified Julian Day at 17 November 1858.

MJD_OFFSET

Modified Julian Date in seconds as defined here. MJD epoch is Modified Julian Day at 17 November 1858 at midnight.

SECONDS_PER_DAY

SECONDS_PER_DAY defines the number of seconds per day.

SECONDS_PER_HOUR

SECONDS_PER_HOUR defines the number of seconds per hour.

SECONDS_PER_MINUTE

SECONDS_PER_MINUTE defines the number of seconds per minute.

SECONDS_PER_TROPICAL_YEAR

SECONDS_PER_TROPICAL_YEAR corresponds to the number of seconds per tropical year, as defined in tyear_c.c in NAIF SPICE.

Functions

is_gregorian_valid

Returns true if the provided Gregorian date is valid. Leap second days may have 60 seconds.