1 2 3 4 5 6 7 8 9
use chrono::{DateTime, Utc}; /// Abstraction over wall-clock time. /// /// Allows tests to inject a fixed instant so that time-dependent logic /// (staleness checks, lock file timestamps) is deterministic. pub trait Clock { fn now(&self) -> DateTime<Utc>; }