Return proleptic Gregorian ordinal for the year, month and day. January 1 of year 1 is day 1. Only the year, month and day values contribute to the result.
(self)
| 1163 | 0, 0, 0, -1) |
| 1164 | |
| 1165 | def toordinal(self): |
| 1166 | """Return proleptic Gregorian ordinal for the year, month and day. |
| 1167 | |
| 1168 | January 1 of year 1 is day 1. Only the year, month and day values |
| 1169 | contribute to the result. |
| 1170 | """ |
| 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.""" |