def parse_time_expression(parameter: Any, min_value: int, max_value: int) -> List[int]:
    'Parse the time expression part and return a list of times to match.'
    if ((parameter is None) or (parameter == MATCH_ALL)):
        res = list(range(min_value, (max_value + 1)))
    elif (isinstance(parameter, str) and parameter.startswith('/')):
        parameter = int(parameter[1:])
        res = [x for x in range(min_value, (max_value + 1)) if ((x % parameter) == 0)]
    elif (not hasattr(parameter, '__iter__')):
        res = [int(parameter)]
    else:
        res = list(sorted((int(x) for x in parameter)))
    for val in res:
        if ((val < min_value) or (val > max_value)):
            raise ValueError("Time expression '{}': parameter {} out of range ({} to {})".format(parameter, val, min_value, max_value))
    return res
Parse the time expression part and return a list of times to match.
def parse_time_expression(parameter: Any, min_value: int, max_value: int) -> List[int]:
    
    if ((parameter is None) or (parameter == MATCH_ALL)):
        res = list(range(min_value, (max_value + 1)))
    elif (isinstance(parameter, str) and parameter.startswith('/')):
        parameter = int(parameter[1:])
        res = [x for x in range(min_value, (max_value + 1)) if ((x % parameter) == 0)]
    elif (not hasattr(parameter, '__iter__')):
        res = [int(parameter)]
    else:
        res = list(sorted((int(x) for x in parameter)))
    for val in res:
        if ((val < min_value) or (val > max_value)):
            raise ValueError("Time expression '{}': parameter {} out of range ({} to {})".format(parameter, val, min_value, max_value))
    return res