year, month -> number of days in year preceding first day of month.
(year, month)
| 56 | return _DAYS_IN_MONTH[month] |
| 57 | |
| 58 | def _days_before_month(year, month): |
| 59 | "year, month -> number of days in year preceding first day of month." |
| 60 | assert 1 <= month <= 12, 'month must be in 1..12' |
| 61 | return _DAYS_BEFORE_MONTH[month] + (month > 2 and _is_leap(year)) |
| 62 | |
| 63 | def _ymd2ord(year, month, day): |
| 64 | "year, month, day -> ordinal, considering 01-Jan-0001 as day 1." |
no test coverage detected