year, month -> number of days in year preceding first day of month.
(year, month)
| 61 | return _DAYS_IN_MONTH[month] |
| 62 | |
| 63 | def _days_before_month(year, month): |
| 64 | "year, month -> number of days in year preceding first day of month." |
| 65 | assert 1 <= month <= 12, f"month must be in 1..12, not {month}" |
| 66 | return _DAYS_BEFORE_MONTH[month] + (month > 2 and _is_leap(year)) |
| 67 | |
| 68 | def _ymd2ord(year, month, day): |
| 69 | "year, month, day -> ordinal, considering 01-Jan-0001 as day 1." |
no test coverage detected
searching dependent graphs…