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§

source

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§

source§

impl AnyTimestamp for SystemTime

Implementors§

source§

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