def hours_minutes_seconds(value):
try:<EOL><INDENT>return int(value)<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT>match = (_hours_minutes_seconds_re.match(value)<EOL>or _hours_minutes_seconds_2_re.match(value))<EOL>if not match:<EOL><INDENT>raise ValueError<EOL><DEDENT>s = <NUM_LIT:0><EOL>s += int(match.group("<STR_LIT>") or "<STR_LIT:0>") * <NUM_LIT> * <NUM_LIT><EOL>s += int(match.group("<STR_LIT>") or "<STR_LIT:0>") * <NUM_LIT><EOL>s += int(match.group("<STR_LIT>") or "<STR_LIT:0>")<EOL>return s<EOL>
converts a timestamp to seconds

      - hours:minutes:seconds to seconds
      - minutes:seconds to seconds
      - 11h22m33s to seconds
      - 11h to seconds
      - 20h15m to seconds
      - seconds to seconds

    :param value: hh:mm:ss ; 00h00m00s ; seconds
    :return: seconds