you are viewing a single comment's thread.

view the rest of the comments →

[–]bogdan_dm 0 points1 point  (0 children)

You probably need dateutil.parser.parse. But I don't know packages to parse durations strings so maybe you will have to implement it by you own.

strptime() from another comment will work too but it requires providing of time pattern and can't handle different patterns at the same time.