synd_term/application/
clock.rs

1use chrono::{DateTime, Utc};
2
3pub trait Clock {
4    fn now(&self) -> DateTime<Utc>;
5}
6
7pub struct SystemClock;
8
9impl Clock for SystemClock {
10    fn now(&self) -> DateTime<Utc> {
11        Utc::now()
12    }
13}