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)
| 1148 | 0, 0, 0, -1) |
| 1149 | |
| 1150 | def toordinal(self): |
| 1151 | """Return proleptic Gregorian ordinal for the year, month and day. |
| 1152 | |
| 1153 | January 1 of year 1 is day 1. Only the year, month and day values |
| 1154 | contribute to the result. |
| 1155 | """ |
| 1156 | return _ymd2ord(self._year, self._month, self._day) |
| 1157 | |
| 1158 | def replace(self, year=None, month=None, day=None): |
| 1159 | """Return a new date with new values for the specified fields.""" |