This commit is contained in:
2026-03-16 00:12:12 +01:00
parent b507a0e367
commit eccd2f968d
18 changed files with 796 additions and 234 deletions
+9
View File
@@ -0,0 +1,9 @@
export function formatTime(minutes: number): string {
return `${Math.floor((minutes / 60) % 24)
.toFixed(0)
.padStart(2, "0")}:${(minutes % 60).toFixed(0).padStart(2, "0")}`;
}
export function timeToMinute(time: string): number {
return Math.floor(Date.parse(`1970-01-01T${time}:00Z`) / 60000);
}