arrow_array::delta

Function add_months_datetime

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

Add the given number of months to the given datetime.

Returns None when it will result in overflow.