Return a new date with new values for the specified fields.
(self, year=None, month=None, day=None)
| 1171 | return _ymd2ord(self._year, self._month, self._day) |
| 1172 | |
| 1173 | def replace(self, year=None, month=None, day=None): |
| 1174 | """Return a new date with new values for the specified fields.""" |
| 1175 | if year is None: |
| 1176 | year = self._year |
| 1177 | if month is None: |
| 1178 | month = self._month |
| 1179 | if day is None: |
| 1180 | day = self._day |
| 1181 | return type(self)(year, month, day) |
| 1182 | |
| 1183 | __replace__ = replace |
| 1184 |
no outgoing calls
no test coverage detected