if format.lower() == iso8601:
    return parse_time(value)
else:
    return datetime.datetime.strptime(value, format).time()