Function chrono::round::duration_round

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