pub trait Clock: Send + Sync {
// Required method
fn now(&self) -> DateTime<Utc>;
}Expand description
Wall-clock source. Returns a full DateTime<Utc>; callers derive
.timestamp() / .to_rfc3339() as they need.
pub trait Clock: Send + Sync {
// Required method
fn now(&self) -> DateTime<Utc>;
}Wall-clock source. Returns a full DateTime<Utc>; callers derive
.timestamp() / .to_rfc3339() as they need.