Skip to main content

Clock

Trait Clock 

Source
pub trait Clock {
    // Required method
    fn today(&self) -> NaiveDate;
}
Expand description

The source of the current date.

Required Methods§

Source

fn today(&self) -> NaiveDate

Today’s date in the local time zone.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§