Function add_days
Source pub fn add_days(
date: NaiveDate,
days: i64,
) -> Result<NaiveDate, DateConversionError>
Expand description
Add days to a date with overflow checking
§Arguments
date - Starting date
days - Number of days to add (can be negative)
§Returns
Ok(NaiveDate) if successful, Err if overflow would occur