hopr_lib

Trait AsUnixTimestamp

Source
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§

Source

fn as_unix_timestamp(&self) -> Duration

Represents self as Duration since Unix epoch.

Implementations on Foreign Types§

Source§

impl AsUnixTimestamp for SystemTime

Implementors§