Skip to main content

Clock

Trait Clock 

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

Source of the current wall-clock time, in UTC.

Required Methods§

Source

fn now(&self) -> OffsetDateTime

Return the current UTC instant.

Implementors§