Answers for "convert seconds to duration format js"

0

javascript format seconds into minutes and second

function getTime(time) {
    //1:43
    // console.log(Math.floor(time % 60))
    return Math.floor(time / 60) + ':' + ('0' + Math.floor(time % 60)).slice(-2)
  }
Posted by: Guest on October-22-2021

Code answers related to "convert seconds to duration format js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language