I'm trying to parse this datetime:
t = '2021-08-21 11:23:45.180999936'
using datetime strptime function:
from datetime import datetime
datetime.strptime(t, '%Y-%m-%d %H:%M:%S.%f').time()
I'm struggling with the last element of the datime, which I assume to be microseconds (%f), but get this error:
ValueError: unconverted data remains: 936 strptime
So if I understood the value error says the datetime is three digits too long for the last part to be a microsecond. What is the right way of parsing this datetime if not with microseconds? What is the ISO format of this datetime?
My question is related to this (unanswered) question with a different (related?) format (with Z-suffix).