Answers for "reverse seconds to hours in javascript"

0

how to convert seconds in hours minutes and seconds js

function convertSeconds(seconds) {
  var convert = function(x) { return (x < 10) ? "0"+x : x; }
  return convert(parseInt(seconds / (60*60))) + ":" +
         convert(parseInt(seconds / 60 % 60)) + ":" +
         convert(seconds % 60)
}
Posted by: Guest on October-12-2021

Code answers related to "reverse seconds to hours in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language