Function chrono::round::duration_trunc

source ยท
fn duration_trunc<T>(
    naive: NaiveDateTime,
    original: T,
    duration: TimeDelta,
) -> Result<T, RoundingError>
where T: Timelike + Add<TimeDelta, Output = T> + Sub<TimeDelta, Output = T>,