1 2 3 4 5 6 7 8 9 10 11 12
use chrono::{DateTime, Utc}; use crate::ports::outbound::runtime::clock::Clock; #[derive(Clone, Default)] pub struct SystemClock; impl Clock for SystemClock { fn now(&self) -> DateTime<Utc> { Utc::now() } }