pub fn add_months(&mut self, months: u32) {
        let mut new_month = MonthTuple::from(*self);
        new_month.add_months(months);
        let last_date_in_month =
            date_utils::get_last_date_in_month(new_month.get_month(), new_month.get_year());
        if self.d > last_date_in_month {
            self.d = last_date_in_month;
        }
        self.y = new_month.get_year();
        self.m = new_month.get_month();
    }
/// Adds a number of months to a DateTuple.
///
/// If the day of month is beyond the last date in the resulting month, the day of
/// month will be set to the last day of that month.
Adds a number of months to a DateTuple.
If the day of month is beyond the last date in the resulting month, the day of
month will be set to the last day of that month.
Adds a number of months to a DateTuple . If the day of month is beyond the last date in the resulting month the day of month will be set to the last day of that month .
pub fn add_months(&mut self, months: u32) {
        let mut new_month = MonthTuple::from(*self);
        new_month.add_months(months);
        let last_date_in_month =
            date_utils::get_last_date_in_month(new_month.get_month(), new_month.get_year());
        if self.d > last_date_in_month {
            self.d = last_date_in_month;
        }
        self.y = new_month.get_year();
        self.m = new_month.get_month();
    }
pub fn add_months ( & mut self , months : u32 ) { let mut new_month = MonthTuple :: from ( * self ) ; new_month . add_months ( months ) ; let last_date_in_month = date_utils :: get_last_date_in_month ( new_month . get_month ( ) , new_month . get_year ( ) ) ; if self . d > last_date_in_month { self . d = last_date_in_month ; } self . y = new_month . get_year ( ) ; self . m = new_month . get_month ( ) ; }
Adds a number of months to a DateTuple.
Adds a number of months to a DateTuple .
&mut self
months
u32
&mut self
months
u32