pub fn previous_month(self) -> MonthTuple {
        if self.y == 0 && self.m == 1 {
            return self;
        }
        if self.m == 1 {
            MonthTuple {
                y: self.y - 1,
                m: 12,
            }
        } else {
            MonthTuple {
                y: self.y,
                m: self.m - 1,
            }
        }
    }
/// Gets a MonthTuple representing the month immediately preceding
/// the current one. Will not go past Jan 0000.
Gets a MonthTuple representing the month immediately preceding
the current one. Will not go past Jan 0000.
Gets a MonthTuple representing the month immediately preceding the current one . Will not go past Jan 0000 .
pub fn previous_month(self) -> MonthTuple {
        if self.y == 0 && self.m == 1 {
            return self;
        }
        if self.m == 1 {
            MonthTuple {
                y: self.y - 1,
                m: 12,
            }
        } else {
            MonthTuple {
                y: self.y,
                m: self.m - 1,
            }
        }
    }
pub fn previous_month ( self ) -> MonthTuple { if self . y == 0 && self . m == 1 { return self ; } if self . m == 1 { MonthTuple { y : self . y - 1 , m : 12 , } } else { MonthTuple { y : self . y , m : self . m - 1 , } } }
Gets a MonthTuple representing the month immediately preceding
the current one.
Gets a MonthTuple representing the month immediately preceding the current one .
self
self