Ako is a Rust crate that offers a practical and human-friendly approach to creating, manipulating, formatting and converting dates, times and timestamps.
usecrate::Moment;/// Types that can be viewed as a moment on the time-line.
pubtraitAsMoment{fnas_moment(&self)-> Moment;}#[cfg(feature ="std")]implAsMoment forstd::time::SystemTime{#[inline]fnas_moment(&self)-> Moment{Moment::from(*self)}}