simplify tools imports

This commit is contained in:
Gavin McDonald
2025-07-04 14:18:38 -04:00
parent c6e316a1f8
commit b4b0c853f1
14 changed files with 29 additions and 26 deletions

View File

@@ -7,7 +7,7 @@ export interface ParsedMilliseconds {
seconds: number;
}
export default function parseMilliseconds(timestamp: number): ParsedMilliseconds {
export const parseMilliseconds = (timestamp: number): ParsedMilliseconds => {
const days = Math.floor(timestamp / DAY);
timestamp %= DAY;
@@ -21,4 +21,4 @@ export default function parseMilliseconds(timestamp: number): ParsedMilliseconds
timestamp %= SECOND;
return { days, hours, minutes, seconds };
}
};