You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to parse this: "2020-08-20T03:33:46.000Z" and it does not seem to work. I have not found any examples in the documentation that I can try so I don't know if if I'm doing something wrong or if I found a bug.
I get these errors:
>>> import dateutil.parser
>>> dateutil.parser.isoparser("2020-08-20T03:33:46")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/site-packages/dateutil/parser/isoparser.py", line 52, in __init__
raise ValueError('Separator must be a single, non-numeric ' +
ValueError: Separator must be a single, non-numeric ASCII character
>>> dateutil.parser.isoparser("2020-08-20T03:33:46.000Z")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/site-packages/dateutil/parser/isoparser.py", line 52, in __init__
raise ValueError('Separator must be a single, non-numeric ' +
ValueError: Separator must be a single, non-numeric ASCII character
I tried supplying a separator like this:
>>> dateutil.parser.isoparser("2020-08-20T03:33:46.000Z", sep="T")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __init__() got multiple values for argument 'sep'
I also tried with a string from the RFC standard but that failed too:
>>> dateutil.parser.isoparser("1997-07-16T19:20+01:00")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/site-packages/dateutil/parser/isoparser.py", line 52, in __init__
raise ValueError('Separator must be a single, non-numeric ' +
ValueError: Separator must be a single, non-numeric ASCII character
The text was updated successfully, but these errors were encountered:
I'm trying to parse this: "2020-08-20T03:33:46.000Z" and it does not seem to work. I have not found any examples in the documentation that I can try so I don't know if if I'm doing something wrong or if I found a bug.
I get these errors:
I tried supplying a separator like this:
I also tried with a string from the RFC standard but that failed too:
The text was updated successfully, but these errors were encountered: