Generic Commit; Most likely a fix or small feature

This commit is contained in:
Darius
2025-11-18 01:09:00 +01:00
parent b47db3cf05
commit 1ab38c4c87
6 changed files with 13 additions and 5 deletions

View File

@@ -31,10 +31,15 @@ export class TimeSpan {
}
}
export interface TimeBetween {
seconds: number;
toReadable: (roundToMinutes?: boolean) => string;
}
export function calculateSecondsBetween(
start: number,
end: number,
): { seconds: number; toReadable: (roundToMinutes?: boolean) => string } {
): TimeBetween {
const seconds = Math.max(60, (end - start) / 1000);
return {
seconds,