Module hifitime::utc [] [src]

The Utc module supports conversions between Utc and other time systems. The main advantage (and challenge) is the inherent support for leap seconds. Refer to module documentation for leap second implementation details.

Reexports

pub use super::TimeSystem;

Structs

FixedOffset

FixedOffset implements a time fixed offset of a certain number of hours with regard to UTC.

Utc

Utc is the interface between a time system and a time zone. All time zones are defined with respect to UTC. Moreover, Utc inherently supports the past leap seconds, as reported by the IETF and NIST at https://www.ietf.org/timezones/data/leap-seconds.list. 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.

Traits

TimeZone

TimeZone defines a timezone with respect to Utc.

Type Definitions

Offset

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.