(self, year)
| 532 | self.second = second |
| 533 | |
| 534 | def year_to_epoch(self, year): |
| 535 | days_before_year = _post_epoch_days_before_year(year) |
| 536 | |
| 537 | d = self.d |
| 538 | if self.julian and d >= 59 and calendar.isleap(year): |
| 539 | d += 1 |
| 540 | |
| 541 | epoch = (days_before_year + d) * 86400 |
| 542 | epoch += self.hour * 3600 + self.minute * 60 + self.second |
| 543 | |
| 544 | return epoch |
| 545 | |
| 546 | |
| 547 | class _CalendarOffset: |
no test coverage detected