Trait frame_support::traits::UnixTime

source ·
pub trait UnixTime {
    // Required method
    fn now() -> Duration;
}
Expand description

Trait to deal with unix time.

Required Methods§

source

fn now() -> Duration

Return duration since SystemTime::UNIX_EPOCH.

Object Safety§

This trait is not object safe.

Implementors§