Skip to content

Commit 765a3ab

Browse files
committed
front: drop calculateTimeDifferenceInSeconds()
This is now unused. Signed-off-by: Simon Ser <[email protected]>
1 parent 6d08d53 commit 765a3ab

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

front/src/utils/timeManipulation.ts

-6
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@ export function durationInSeconds(start: number, end: number) {
6262
return end > start ? end - start : end + SECONDS_IN_A_DAY - start;
6363
}
6464

65-
export function calculateTimeDifferenceInSeconds(time1: string | Date, time2: string | Date) {
66-
const date1 = new Date(time1);
67-
const date2 = new Date(time2);
68-
return (date2.getTime() - date1.getTime()) / 1000;
69-
}
70-
7165
export function calculateTimeDifferenceInDays(datetime1?: Date, datetime2?: Date) {
7266
if (!datetime1 || !datetime2) {
7367
return undefined;

0 commit comments

Comments
 (0)