pub fn next_date(self) -> DateTuple {
        if self.y == 9999 && self.m == 12 && self.d == 31 {
            return self;
        }
        if self.d == date_utils::get_last_date_in_month(self.m, self.y) {
            if self.m == 12 {
                DateTuple {
                    y: self.y + 1,
                    m: 1,
                    d: 1,
                }
            } else {
                DateTuple {
                    y: self.y,
                    m: self.m + 1,
                    d: 1,
                }
            }
        } else {
            DateTuple {
                y: self.y,
                m: self.m,
                d: self.d + 1,
            }
        }
    }
/// Gets a DateTuple representing the date immediately following
/// the current one. Will not go past Dec 9999.
Gets a DateTuple representing the date immediately following
the current one. Will not go past Dec 9999.
Gets a DateTuple representing the date immediately following the current one . Will not go past Dec 9999 .
pub fn next_date(self) -> DateTuple {
        if self.y == 9999 && self.m == 12 && self.d == 31 {
            return self;
        }
        if self.d == date_utils::get_last_date_in_month(self.m, self.y) {
            if self.m == 12 {
                DateTuple {
                    y: self.y + 1,
                    m: 1,
                    d: 1,
                }
            } else {
                DateTuple {
                    y: self.y,
                    m: self.m + 1,
                    d: 1,
                }
            }
        } else {
            DateTuple {
                y: self.y,
                m: self.m,
                d: self.d + 1,
            }
        }
    }
pub fn next_date ( self ) -> DateTuple { if self . y == 9999 && self . m == 12 && self . d == 31 { return self ; } if self . d == date_utils :: get_last_date_in_month ( self . m , self . y ) { if self . m == 12 { DateTuple { y : self . y + 1 , m : 1 , d : 1 , } } else { DateTuple { y : self . y , m : self . m + 1 , d : 1 , } } } else { DateTuple { y : self . y , m : self . m , d : self . d + 1 , } } }
Gets a DateTuple representing the date immediately following
the current one.
Gets a DateTuple representing the date immediately following the current one .
self
self