adding new chart system

This commit is contained in:
Christian Kellner
2025-09-03 14:22:04 +02:00
parent 29026ccad8
commit f8e0376ddd
8 changed files with 44 additions and 76 deletions

View File

@@ -8,4 +8,4 @@ export function format(ts) {
second: 'numeric',
}).format(ts);
}
export const roundToNext5Minute = (ts) => Math.ceil(ts / (1000 * 60 * 5)) * (1000 * 60 * 5);
export const roundToHour = (ts) => Math.ceil(ts / (1000 * 60 * 60)) * (1000 * 60 * 60);