(cls, year, month, day)
| 578 | |
| 579 | @classmethod |
| 580 | def _ymd2ord(cls, year, month, day): |
| 581 | return ( |
| 582 | _post_epoch_days_before_year(year) |
| 583 | + cls._DAYS_BEFORE_MONTH[month] |
| 584 | + (month > 2 and calendar.isleap(year)) |
| 585 | + day |
| 586 | ) |
| 587 | |
| 588 | # TODO: These are not actually epoch dates as they are expressed in local time |
| 589 | def year_to_epoch(self, year): |
no test coverage detected