Skip to main content

Clock

Trait Clock 

Source
pub trait Clock: Send + Sync {
    // Required method
    fn now(&self) -> DateTime<Utc>;
}
Expand description

Source of wall-clock time.

Required Methods§

Source

fn now(&self) -> DateTime<Utc>

Returns the current UTC time.

Implementors§