(date: Mutable<AnyCalendarDate>, years: number)
| 108 | } |
| 109 | |
| 110 | function addYears(date: Mutable<AnyCalendarDate>, years: number) { |
| 111 | if (date.calendar.isInverseEra?.(date)) { |
| 112 | years = -years; |
| 113 | } |
| 114 | |
| 115 | date.year += years; |
| 116 | } |
| 117 | |
| 118 | function balanceYearMonth(date: Mutable<AnyCalendarDate>) { |
| 119 | while (date.month < 1) { |
no test coverage detected