fn add_days(&self, date: Date) -> Result<Date, TimeSeriesError> {
        let julian = date.to_julian_day() + self.days;
        let d = Date::from_julian_day(julian).map_err(|_| TimeSeriesError::DateOutOfRange)?;
        Ok(d)
    }
/// Internal method to add any number of days to a date
Internal method to add any number of days to a date
Internal method to add any number of days to a date
fn add_days(&self, date: Date) -> Result<Date, TimeSeriesError> {
        let julian = date.to_julian_day() + self.days;
        let d = Date::from_julian_day(julian).map_err(|_| TimeSeriesError::DateOutOfRange)?;
        Ok(d)
    }
fn add_days ( & self , date : Date ) -> Result < Date , TimeSeriesError > { let julian = date . to_julian_day ( ) + self . days ; let d = Date :: from_julian_day ( julian ) . map_err ( | _ | TimeSeriesError :: DateOutOfRange ) ? ; Ok ( d ) }
Internal method to add any number of days to a date
Internal method to add any number of days to a date
&self
date
Date
&self
date
Date