mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
refactor(timeline): drop an unused month helper
This commit is contained in:
1 parent
ecf27cd9bc
commit
f8dab58bc5
1 file changed
-5
@@ -26,11 +26,6 @@ export function dayKey(day: number): string {
|
||||
return new Date(day * MS_PER_DAY).toISOString().slice(0, 10);
|
||||
}
|
||||
|
||||
/** `YYYY-MM` of a date key. */
|
||||
export function monthOf(key: string): string {
|
||||
return key.slice(0, 7);
|
||||
}
|
||||
|
||||
/** First day of the month a key falls in. */
|
||||
export function startOfMonth(key: string): string {
|
||||
return `${key.slice(0, 7)}-01`;
|
||||
|
||||
Reference in new issue
Block a user