Trait hifitime::TimeSystem
[−]
[src]
pub trait TimeSystem: PartialOrd { fn from_instant(_: Instant) -> Self; fn into_instant(self) -> Instant; }
A TimeSystem
enables the creation of system for measuring spans of time, such as UTC or Julian
days.
Required Methods
fn from_instant(_: Instant) -> Self
Use this method to convert between different TimeSystem
implementors.
fn into_instant(self) -> Instant
Also use this method to convert between different TimeSystem
implementors
Implementors
impl TimeSystem for ModifiedJulian
impl TimeSystem for Datetime