code: function (timeString) {
    if (!timeString) {
      return null
    }
    var timeArr = timeString.split(':')
    return parseInt(timeArr[0], 10) * 3600 +
      parseInt(timeArr[1], 10) * 60 +
      parseInt(timeArr[2])
  }
docs: convert timeString to int of seconds past midnight