Hello, I need to split the hours variable into hours and minutes and concatenate the string:

function updateDistances(item) {
try {
var prev = $($(item).prevAll('li:not(.show_placeholder):first'));

if (prev != undefined && !$(prev).hasClass('temp_placeholder')) {
calcRoute(prev, $(item));
}
} catch(e) {
log(e);
}

try {
var next = $($(item).nextAll('li:not(.show_placeholder):first'));

if (next == undefined || $(next).hasClass('temp_placeholder')) {
$($(item).find('span.drive_time')[0]).text(hours.toString().substring(0, 4) + ' h' + ' :' + ' m');


$($(item).find('span.drive_miles')[0]).text('0.0 mi');
$(item).find('select.transfer').val('');
} else {
calcRoute($(item), next);
}
} catch(e) {
log(e);
}
}

The line I need to change is:

$($(item).find('span.drive_time')[0]).text(hours.toString().substring(0, 4) + ' h' + ' :' + ' m');

I am unsure what to do with this line of text, for instance [0] and (0,4)

any help appreciated.

Right now it is converting all values to hours instead of hours and minutes. Thanks,