(year: number, month: number)
| 29 | const DEFAULT_RANGE_END_TIME = '23:59' |
| 30 | |
| 31 | function getDaysInMonth(year: number, month: number): number { |
| 32 | return new Date(year, month + 1, 0).getDate() |
| 33 | } |
| 34 | |
| 35 | function getFirstDayOfMonth(year: number, month: number): number { |
| 36 | return new Date(year, month, 1).getDay() |