def convert_hhmmss(hhmmss):
fields = hhmmss.split("<STR_LIT::>")<EOL>if len(fields) != <NUM_LIT:3>:<EOL><INDENT>raise ValueError("<STR_LIT>".format(hhmmss))<EOL><DEDENT>fields = [int(x) for x in fields]<EOL>hours, minutes, seconds = fields<EOL>return (hours * <NUM_LIT>) + (minutes * <NUM_LIT>) + seconds<EOL>
Convert hh:mm:ss to seconds.