I get the following error:
met exception: time data '2021-12-29T12:51:59.397Z' does not match format '%Y-%m-%dT%H:%M:%S.%f%z'
This is the code I use.
datetime.strptime(host_timesstr, '%Y-%m-%dT%H:%M:%S.%f%z')
I get the following error:
met exception: time data '2021-12-29T12:51:59.397Z' does not match format '%Y-%m-%dT%H:%M:%S.%f%z'
This is the code I use.
datetime.strptime(host_timesstr, '%Y-%m-%dT%H:%M:%S.%f%z')