arrow_array::delta

Function shift_months

Source
pub(crate) fn shift_months<D>(date: D, months: i32) -> D
where D: Datelike + Add<Months, Output = D> + Sub<Months, Output = D>,
Expand description

Shift a date by the given number of months.