hmsToSeconds(hms) {
    if (typeof hms === 'number') return hms;

    const a = hms.split(':');
    const seconds = +a[0] * 60 * 60 + +a[1] * 60 + +a[2];
    return seconds;
  }
Convert hh:mm:ss format time to seconds
@param {string} hms - hh:mm:ss format time
@return {number} seconds second
@public