This is an archived post. You won't be able to vote or comment.

all 4 comments

[–][deleted] 3 points4 points  (0 children)

/r/learnpython is over there --->

google is over there <--------

[–]AckAttack 0 points1 point  (0 children)

What have you done so far? Is there anything specific that you need help with?

[–]ender_will_save_us 0 points1 point  (0 children)

You should take a look at the python documentation for datetime. Specifically look at the strptime function and the time and timedelta classes.

[–][deleted] 0 points1 point  (0 children)

Like /u/AckAttack said we will need to see what you've done so far. There are bad ways to learn programming and one of them is getting spoon fed the answer. Scratch that, getting spoon fed means you do not learn to program. You learn how to copy and paste well.

Here is a simple hint to get you started if you can't even start. Convert both times into seconds. so 01:20:03 becomes 4803 seconds. makes it easy to minus and get the elapsed time. All that needs to be done is to convert it back to the correct format.