(date: Date)
| 14 | } |
| 15 | |
| 16 | function startOfUtcMonth(date: Date): Date { |
| 17 | return new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1)) |
| 18 | } |
| 19 | |
| 20 | function startOfUtcYear(date: Date): Date { |
| 21 | return new Date(Date.UTC(date.getUTCFullYear(), 0, 1)) |