Here's a fourth way I've seen, that I forgot to mention (mostly a variation of 
Solution 2, above):
```
delta = datetime.strptime('05:20:25', '%H:%M:%S') - 
datetime.strptime('00:00:00', '%H:%M:%S')
```
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/XSKKTFIO63YAJ3WLZFB3RU3SSR2K5FTI/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to