Skip to content

Commit

Permalink
front: drop datetime2string()
Browse files Browse the repository at this point in the history
This is unused.

Signed-off-by: Simon Ser <[email protected]>
  • Loading branch information
emersion committed Feb 18, 2025
1 parent 765a3ab commit 003ccae
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions front/src/utils/timeManipulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ export function minToMs(min: number) {
return min * 60 * 1000;
}

export function datetime2string(ts: string | number | Date): TimeString {
const datetime = new Date(ts);
return datetime.toLocaleString();
}

export function datetime2time(datetime: Date) {
const formatTime = d3.timeFormat('%H:%M:%S');
return formatTime(datetime);
Expand Down

0 comments on commit 003ccae

Please sign in to comment.