Get the number of days between 1970-01-01 and YEAR-01-01
(year)
| 508 | |
| 509 | |
| 510 | def _post_epoch_days_before_year(year): |
| 511 | """Get the number of days between 1970-01-01 and YEAR-01-01""" |
| 512 | y = year - 1 |
| 513 | return y * 365 + y // 4 - y // 100 + y // 400 - EPOCHORDINAL |
| 514 | |
| 515 | |
| 516 | class _DayOffset: |
no outgoing calls
no test coverage detected