Return a new date with new values for the specified fields.
(self, year=None, month=None, day=None)
| 1086 | return _ymd2ord(self._year, self._month, self._day) |
| 1087 | |
| 1088 | def replace(self, year=None, month=None, day=None): |
| 1089 | """Return a new date with new values for the specified fields.""" |
| 1090 | if year is None: |
| 1091 | year = self._year |
| 1092 | if month is None: |
| 1093 | month = self._month |
| 1094 | if day is None: |
| 1095 | day = self._day |
| 1096 | return type(self)(year, month, day) |
| 1097 | |
| 1098 | # Comparisons of date objects with other. |
| 1099 |
no test coverage detected