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