arrow_array::delta

Function sub_months_datetime

Source
pub(crate) fn sub_months_datetime<Tz: TimeZone>(
    dt: DateTime<Tz>,
    months: i32,
) -> Option<DateTime<Tz>>
Expand description

Substract the given number of months to the given datetime.

Returns None when it will result in overflow.