Python, subtract two different times in the format (HH:MM:SS - HH:MM:SS)
<p>I need to subtract two different times, to get the difference. For example say I have message.start and message.end, both of which are a date and time (but they are of type 'time'. I checked this using <code>type(message.start)</code> in python) and are in the following format: 'month/day/year HH:MM:SS' so for example (08/11/16 13:32:00)</p>

<p>In the code below I convert them to strings as I need to split up the date and time, and further split the date for other parts of the code which I don't need to show here. I tried something along message.end - message.start but that didn't work either.</p>

<p>I just need the time difference, so say I have 08/11/16 18:30:00 - 08/11/16 12:00:00, this should result in 6.5 or 6hrs30mins </p>

<p>What can I do? </p>

<p>This is my code:</p>

<pre><code>startDateTime = str(message.start).split()
    startTime = startDateTime[1]
    startDate = startDateTime[0].rsplit("/")

    endDateTime = str(message.end).split()
    endTime = endDateTime[1]
    endDate = endDateTime[0].rsplit("/")
</code></pre>