(time)
return int(m.group(1))
Parses a -Xh string to an int.
    Within the code, the fact that it's negative is actually optional, but I'd rather
    not directly expose that fact.
Parses a -Xh string to an int.
    Within the code, the fact that it's negative is actually optional, but I'd rather
    not directly expose that fact.
Parses a - Xh string to an int . Within the code the fact that it s negative is actually optional but I d rather not directly expose that fact .
def parse_time(time):
    # type: (str) -> int
    '''
    Parses a -Xh string to an int.
    Within the code, the fact that it's negative is actually optional, but I'd rather
    not directly expose that fact.
    '''
    m = TIME_REGEX.match(time)
    if m is None:
        raise ValueError('{0} is an invalid time.'.format(time))
    return int(m.group(1))
def parse_time ( time ) : # type: (str) -> int m = TIME_REGEX . match ( time ) if m is None : raise ValueError ( '{0} is an invalid time.' . format ( time ) ) return int ( m . group ( 1 ) )