I was wondering if there\'s a simple way, using moment.js library, to transform a decimal time interval (for example, 1.074 minutes) into its equivalent \'mm:ss\' value. I a
using just js, here's a really simple and fast way to do this for up to 12 hours:
function secTommss2(sec){ return new Date(sec*1000).toUTCString().split(" ")[4] }