Files
core_ng/server/util/parseYearMonth.ts
T
2023-08-05 12:12:18 +00:00

3 lines
126 B
TypeScript

export function parseYearMonth(yearMonth: number): [number, number] {
return [(yearMonth / 12) | 0, yearMonth % 12 + 1];
}