We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 765a3ab commit 003ccaeCopy full SHA for 003ccae
front/src/utils/timeManipulation.ts
@@ -20,11 +20,6 @@ export function minToMs(min: number) {
20
return min * 60 * 1000;
21
}
22
23
-export function datetime2string(ts: string | number | Date): TimeString {
24
- const datetime = new Date(ts);
25
- return datetime.toLocaleString();
26
-}
27
-
28
export function datetime2time(datetime: Date) {
29
const formatTime = d3.timeFormat('%H:%M:%S');
30
return formatTime(datetime);
0 commit comments