def _parse_interval(value):
try:<EOL><INDENT>return sorted(aniso8601.parse_interval(value))<EOL><DEDENT>except ValueError:<EOL><INDENT>try:<EOL><INDENT>return aniso8601.parse_datetime(value), None<EOL><DEDENT>except ValueError:<EOL><INDENT>return aniso8601.parse_date(value), None<EOL><DEDENT><DEDENT>
Do some nasty try/except voodoo to get some sort of datetime
    object(s) out of the string.