pub trait AnyTimestamp {
    // Required method
    fn duration_since_unix_epoch(&self) -> Result<Duration, TimeError>;
}
Expand description

A timestamp that can report it sduration since the Unix Epoch.

Required Methods§

fn duration_since_unix_epoch(&self) -> Result<Duration, TimeError>

Returns the Duration since January 1, 1970 00:00:00 UTC for this timestamp.

Implementations on Foreign Types§

§

impl AnyTimestamp for SystemTime

Implementors§

§

impl<Resolution, Epoch> AnyTimestamp for LimitedResolutionTimestamp<Resolution, Epoch>where Resolution: TimeResolution, Epoch: TimeEpoch,