arrow_array::delta

Function sub_days_datetime

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

Substract the given number of days to the given datetime.

Returns None when it will result in overflow.