(self)
| 147 | return self |
| 148 | |
| 149 | def next(self): |
| 150 | #Last day of the month. |
| 151 | if self.day == NumberDaysMonth(self.month, self.year): |
| 152 | self.day = 1 |
| 153 | #December case. |
| 154 | if self.month == 12: |
| 155 | self.month = 1 |
| 156 | self.year += 1 |
| 157 | else: |
| 158 | self.month += 1 |
| 159 | else: |
| 160 | self.day += 1 |
| 161 | |
| 162 | #Extended iterator protocol. One can go backwards. |
| 163 | def previous(self): |
no test coverage detected