Created
July 10, 2015 15:01
-
-
Save kizdolf/4e5883b3ee97f98738cd to your computer and use it in GitHub Desktop.
milliseconds to something like 0h23m4s
This file contains 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 msWell(ms) { | |
return ~~((ms/1000)/3600)+'h'+~~(((ms/1000)%3600)/60)+'m'+~~((ms/1000)%60)+'s'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment