Skip to main content

sum_interval

Function sum_interval 

Source
fn sum_interval<'a, I>(datums: I) -> Datum<'a>
where I: IntoIterator<Item = Datum<'a>>,
Expand description

Sums intervals component-wise, as PostgreSQL’s interval addition does: months, days, and microseconds each accumulate on their own, and nothing is carried from a coarser component into a finer one.