(year: number, month: number, delta: number)
| 21 | } |
| 22 | |
| 23 | function shift(year: number, month: number, delta: number) { |
| 24 | const total = year * 12 + month + delta |
| 25 | return [Math.floor(total / 12), ((total % 12) + 12) % 12] as const |
| 26 | } |
| 27 | |
| 28 | let y = now.getUTCFullYear() |
| 29 | let m = now.getUTCMonth() |