Skip to main content

Crate astrotime

Crate astrotime 

Source
Expand description

astrotime

Time related types for scientific and astronomical usage.

Structs§

DateTime
A calendar date and time, with attosecond precision, representing the time elapsed since the start of the Common Era in a traditional way according to a particular time Standard.
Duration
Duration is an interval of time
Gregorian
Instant
An Instant is a precise moment in time.
Julian
Tai
International Atomic Time (TAI)
Tcg
Geocentric Coordinate Time (TCG)
Tt
Terrestrial Time (TT)
Utc
Universal Coordinated Time (UTC)

Enums§

Epoch
A reference for a well known Instant in time, used for offsetting events from.
Error
Error type for the crate

Constants§

ATTOS_PER_SEC_F64
ATTOS_PER_SEC_I64
ATTOS_PER_SEC_U64

Traits§

Calendar
This specifies traditional Calendar settings that use the traditional 12 months and have leap years. This is implemented for Gregorian and Julian. It does not handle more esoteric calendars.
Standard
A standard of time

Functions§

leap_instants
This returns the Instants directly after leap seconds.
leap_seconds_elapsed_at
This counts how many leap seconds have elapsed at a given instant.