bleh 2
This commit is contained in:
parent
2fe46c3a6a
commit
eb6a5c1ff9
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ const pad = (number: number, length: number) => String(number).padStart(length,
|
||||||
* @param {Number} timeInSeconds
|
* @param {Number} timeInSeconds
|
||||||
* @returns String
|
* @returns String
|
||||||
*/
|
*/
|
||||||
const convertTimeToString = (timeInSeconds: number) => {
|
const convertTimeToString = (timeInSeconds: number) => {
|
||||||
const timeInMinutes = Math.floor(timeInSeconds / 60);
|
const timeInMinutes = Math.floor(timeInSeconds / 60);
|
||||||
if (timeInMinutes < 60) {
|
if (timeInMinutes < 60) {
|
||||||
return timeInMinutes + ":" + pad(Math.floor(timeInSeconds % 60), 2);
|
return timeInMinutes + ":" + pad(Math.floor(timeInSeconds % 60), 2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue