Update format.ts

This commit is contained in:
Minseo Lee 2024-08-30 22:38:49 +09:00
parent ce4a386415
commit 8159d90535

View file

@ -16,15 +16,6 @@ export function parseTime(val: number) {
}; };
} }
export function formatTime(val: number) {
const { hours, minutes, seconds } = parseTime(val);
const h = hours > 0 ? `${hours}:` : '';
const m = hours > 0 ? minutes.toString().padStart(2, '0') : minutes;
const s = seconds.toString().padStart(2, '0');
return `${h}${m}:${s}`;
}
export function formatShortTime( export function formatShortTime(
intl: IntlShape, intl: IntlShape,
useMessages: any, useMessages: any,