Last active
March 23, 2018 20:35
-
-
Save Alexisvt/92abb81ec861bbfe314998af94e4206b to your computer and use it in GitHub Desktop.
function that converts minutes to days, hours and minutes in javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function timeConvert(minutes) { | |
return `${Math.floor(minutes / 24 / 60)}:${Math.floor((minutes / 60) % 24)}:${Math.floor(minutes % 60)}`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment