Module hifitime::datetime

source ·
Expand description

The datetime module supports conversions between seconds past TAI epoch and a Datetime struct. The main advantage (and challenge) is the inherent support for leap seconds. Refer to module documentation for leap second implementation details.

Re-exports

pub use super::instant::Era;
pub use super::instant::Instant;
pub use super::TimeSystem;

Structs

Datetime supports date time has used by most humans. All time zones are defined with respect to UTC. Moreover, Datetime inherently supports the past leap seconds, as reported by the IETF and NIST at here. NOTE: leap seconds cannot be predicted! This module will be updated as soon as possible after a new leap second has been announced. WARNING: The historical oddities with calendars are not yet supported.
A Duration type to represent a span of time, typically used for system timeouts.
FixedOffset implements a time fixed offset of a certain number of hours with regard to UTC.

Type Definitions

Offset is an alias of Instant. It contains the same kind of information, but is used in the context of defining an offset with respect to Utc.