I'm parsing timestamp of event in a log record – 2020-08-09T03:37:33.358874554Z
.
It looks strange to me and I don't know how correct is it. I don'think that 358874554
describe.
I'm trying to parse this example from Python 3.7 like this:
dt.datetime.strptime('2020-08-09T03:37:33.358874554Z', "%Y-%m-%dT%H:%M:%S.%fZ")
It generates an error:
ValueError: time data '2020-08-09T03:37:33.358874554Z' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'
How to parse such a datetime correctly? Is this datetime example in log is correct (in terms of ISO or anything)?