referrerpolicy=no-referrer-when-downgrade

Trait polkadot_sdk_frame::traits::UnixTime

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

Trait to deal with unix time.

Required Methods§

fn now() -> Duration

Return duration since SystemTime::UNIX_EPOCH.

Object Safety§

This trait is not object safe.

Implementors§