pub trait AsUnixTimestamp {
// Required method
fn as_unix_timestamp(&self) -> Duration;
}
Expand description
A trait that adds extension method to represent a time object as Duration
since Unix epoch.
Required Methods§
Sourcefn as_unix_timestamp(&self) -> Duration
fn as_unix_timestamp(&self) -> Duration
Represents self as Duration
since Unix epoch.