SystemTimeExt

Trait SystemTimeExt 

Source
trait SystemTimeExt {
    // Required method
    fn duration_since_epoch_secs(&self) -> Result<u64, SystemTimeError>;
}
Expand description

Helper trait to get duration since UNIX epoch for SystemTime

Required Methods§

Source

fn duration_since_epoch_secs(&self) -> Result<u64, SystemTimeError>

Get the duration since UNIX epoch in seconds

Implementations on Foreign Types§

Source§

impl SystemTimeExt for SystemTime

Implementors§