Answers for "second to minute in js"

0

javascript minute and second to convert seconds

function str_pad_left(string,pad,length) {
    return (new Array(length+1).join(pad)+string).slice(-length);
}

var finalTime = str_pad_left(minutes,'0',2)+':'+str_pad_left(seconds,'0',2);
Posted by: Guest on October-30-2020

Code answers related to "second to minute in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language