code: function getColonTime(timeString) {
    var totalSeconds = 0;
    var timeValues = [
      1,
      1 * 60,
      1 * 60 * 60,
      1 * 60 * 60 * 24,
      1 * 60 * 60 * 24 * 7,
    ];
    var timePairs = timeString.split(':');
    for (var i = 0; i < timePairs.length; i++) {
      totalSeconds += parseInt(timePairs[i], 10) * timeValues[timePairs.length - i - 1];
    }
    return totalSeconds;
  }
docs: parses strings like 1:30:20 to seconds