code: def hms_to_seconds(time_string):
      
      s = time_string.split(':')
      hours = int(s[0])
      minutes = int(s[1])
      secs = float(s[2])
      return hours * 3600 + minutes * 60 + secs
docs: Converts string 'hh:mm:ss.ssssss' as a float