def _parse_interval(value):
    '''
    Do some nasty try/except voodoo to get some sort of datetime
    object(s) out of the string.
    '''
    try:
        return sorted(aniso8601.parse_interval(value))
    except ValueError:
        try:
            return aniso8601.parse_datetime(value), None
        except __HOLE__:
            return aniso8601.parse_date(value), None
dataset/ETHPy150Open noirbizarre/flask-restplus/flask_restplus/inputs.py/_parse_interval