How to calculate the time interval between two time strings

I have two times, a start and a stop time, in the format of 10:33:26 (HH:MM:SS). I need the difference between the two times. I’ve been looking through documentation for Python and searching online and I would imagine it would have something to do with the datetime and/or time modules. I can’t get it to work properly and keep finding only how to do this when a date is involved.

How can I translate dates and times from natural language to datetime?

I’m looking for a way to translate ‘tomorrow at 6am’ or ‘next monday at noon’ to the appropriate datetime objects. I thought of engineering a complex set of rules, but is there another way? Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve … Read more