Skip to main content

duration_since_epoch

Function duration_since_epoch 

Source
pub fn duration_since_epoch(timepoint: SystemTime) -> Duration
Expand description

Converts a system time into a nonnegative duration since the Unix epoch.

Times before the epoch saturate to Duration::ZERO. Times at or after the epoch preserve their full representable duration.