(periodStart: string | Date)
| 21 | } |
| 22 | |
| 23 | export function parseArchivePeriod(periodStart: string | Date): { |
| 24 | year: number; |
| 25 | month: number; |
| 26 | } { |
| 27 | const date = new Date(periodStart); |
| 28 | return { |
| 29 | year: getYear(date), |
| 30 | month: getMonth(date) + 1, |
| 31 | }; |
| 32 | } |
| 33 | |
| 34 | export function getArchivePeriodLabel(archive: { |
| 35 | periodType: ArchivePeriodType; |
no outgoing calls
no test coverage detected