Adding HH:MM:SS strings in Javascript
问题 I don't think I can figure this out on my own. Lets say I have a time in the string format of HH:MM:SS ex. 10:11:06 and I would like to add another time to it and return it as a string. ex. "10:11:06" + "11:00:01" would return "21:11:07" I have gone through this site coming up with a solution of converting it to seconds and then adding them together as such: function addTimes(start, end) { var a = start.split(":"); var seconds = (+a[0]) * 60 * 60 + (+a[1]) * 60 + (+a[2]); var b = end.split(":