22 Aug
2020
22 Aug
'20
6:22 a.m.
I would very much welcome this to the standard library as it seems like a useful function; I certainly would make good use of it and I'm sure others working with durations use similar code for user-facing parts.
With a go like parsing it would be:
datetime.parse_duration("2w50d8h5m27s10ms2000us")
I feel like this would fit better as an alternate constructor (e.g. timedelta.from_string) however