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>
fn duration_since_unix_epoch(&self) -> Result<Duration, TimeError>
Returns the Duration
since January 1, 1970 00:00:00 UTC for this
timestamp.