I would like a machine readable duration for how long a command runs. I was told I could use existing filters. How would I accomplish that? strftime does not support parsing the output of str(timedelta), which is currently used for duration (see https://bugs.python.org/issue41254)
That doesn’t work for longer periods of time: “2 days, 2:02:02.000002”
It’s definitely possible to parse (right now I’m using regex in Python), it’s just annoying to have to manually write a regex for a non-standard format unique to Python timedeltas
Makes sense. If it weren’t for backwards compatibility I would definitely vote duration is machine readable, but maybe that’s an issue with str(timedelta). Guess I’ll just use regex