Skip to content

Commit

Permalink
Delete msToHMS; an unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
rlamacraft committed Mar 10, 2025
1 parent 61b20c8 commit 0590daf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
15 changes: 0 additions & 15 deletions src/main/webapp/ui/src/stores/definitions/Units.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,21 +164,6 @@ export function fromCommonUnit(
* Specifics for working with dates and times
*/

/**
* Converts a number of milliseconds to a string in the format HH:MM:SS.
*/
export function msToHMS(ms: number): string {
let seconds = ms / 1000;
const hours = parseInt(seconds / 3600, 10);
seconds = seconds % 3600;
const minutes = parseInt(seconds / 60, 10);
seconds = seconds % 60;
const hmsFormatted = `${hours < 10 ? "0" : ""}${hours}:${
minutes < 10 ? "0" : ""
}${minutes}:${seconds < 10 ? "0" : ""}${parseInt(seconds, 10)}`;
return hmsFormatted;
}

/**
* Converts a number of milliseconds to a number of days
*/
Expand Down

This file was deleted.

0 comments on commit 0590daf

Please sign in to comment.