use std::fmt::Debug;
use time::OffsetDateTime;
pub trait Clock: Debug + Send + Sync + 'static {
fn now(&self) -> OffsetDateTime;
}
#[derive(Debug, Clone, Copy, Default)]
pub struct SystemClock;
impl Clock for SystemClock {
fn now(&self) -> OffsetDateTime {
OffsetDateTime::now_utc()
}
}