docs: def time_to_sec(time_str: str) -> int:
      """Convert time in string format to seconds.
  
      Skipping seconds since sometimes the last column is truncated
      for entries where >10 days.
      """
      total_sec = 0
      if '-' in time_str:
          # parse out days
          days, time_str = time_str.split('-')
          total_sec += (int(days) * 24 * 60 * 60)
  
      # parse out the hours and mins (skip seconds)
      hours_min_raw = time_str.split(':')[:-1]
      time_parts = [int(round(float(val))) for val in hours_min_raw]
      total_sec += time_parts[-1] * 60              # minutes
      if len(time_parts) > 1:
          total_sec += time_parts[-2] * 60 * 60     # hours
      return total_sec