Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #minute #convert #seconds
ADD COMMENT
Topic
Name
7+7 =