feat: 자율턴 한계 표기

This commit is contained in:
2021-11-13 16:33:11 +09:00
parent d36439355d
commit 542491b278
4 changed files with 28 additions and 9 deletions
+3
View File
@@ -0,0 +1,3 @@
export function joinYearMonth(year: number, month: number): number {
return year * 12 + month - 1;
}
+3
View File
@@ -0,0 +1,3 @@
export function parseYearMonth(yearMonth: number): [number, number] {
return [(yearMonth / 12) | 0, yearMonth % 12 + 1];
}