AyumuOgasawara / receipt-scanner

レシートの写真から家計簿を生成してくれるアプリ
0 stars 0 forks source link

現在ある出費月の範囲をstring[]で取得した (#56) #57

Closed AyumuOgasawara closed 3 hours ago

AyumuOgasawara commented 3 hours ago

概要

現在ある出費月の範囲を["YYY-MM or M"]で取得するようにした。

実装詳細

動作確認

出費の最初の日にち:2024-07-31T14:05:20.658Z -> 2024年7月 (日本時間) 出費の最後の日にち:2024-09-30T23:13:28.683Z -> 2024年10月 (日本時間)

const monthsInRange = getMonthsInRange(firstLastExpense);
console.log(monthsInRange);

[ '2024-7', '2024-8', '2024-9', '2024-10' ]

関連タスク

Closes #56