Module nyx_space::time[][src]

Expand description

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.

Duration

Defines generally usable durations for high precision math with Epoch (all data is stored in seconds)

Epoch

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

TimeSeries

An iterator of a sequence of evenly spaced Epochs.

Enums

Errors

Errors handles all oddities which may occur in this library.

TimeSystem

Enum of the different time systems available

TimeUnit

Constants

DAYS_PER_CENTURY

DAYS_PER_CENTURY corresponds to the number of days per centuy in the Julian calendar.

DAYS_PER_YEAR

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

ET_EPOCH_S

The Ephemeris Time epoch, in seconds

J1900_NAIF
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_NAIF
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.

JDE_OFFSET_DAYS

The JDE offset in days

JDE_OFFSET_SECONDS

The JDE offset in seconds

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_SIDERAL_YEAR

SECONDS_PER_SIDERAL_YEAR corresponds to the number of seconds per sideral year from NIST.

SECONDS_PER_TROPICAL_YEAR

SECONDS_PER_TROPICAL_YEAR corresponds to the number of seconds per tropical year from NAIF SPICE.

SECONDS_PER_YEAR

SECONDS_PER_YEAR corresponds to the number of seconds per julian year from NAIF SPICE.

Functions

is_gregorian_valid

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

Type Definitions

Decimal

Decimal defines a lossless fraction and is the basis of all Epoch computations. It is recommended to use this time for time operations.