Nov-10-2020, 11:09 PM
(This post was last modified: Nov-10-2020, 11:09 PM by deanhystad.)
The first thing you need to do is extract the datetime strings from the lines. Can you do that?
To determine the shortest duration between the two times you need to convert them to something you can subtract. Any units will do, hours, days, seconds, as long as both times are converted to the same time unit. Even a datetime object will work. Can you do this?
The last part is the easiest. Calculate the duration for each line and keep track of the shortest duration.
To determine the shortest duration between the two times you need to convert them to something you can subtract. Any units will do, hours, days, seconds, as long as both times are converted to the same time unit. Even a datetime object will work. Can you do this?
The last part is the easiest. Calculate the duration for each line and keep track of the shortest duration.