Hot answers tagged


Assuming all the times are from the same day, you can calculate the delta between the start time and the end time using the following Python function: import datetime def delta(start, end): start_dt = datetime.datetime.strptime(start, '%H%M') end_dt = datetime.datetime.strptime(end, '%H%M') return (end_dt - start_dt).seconds / 60 This function ...

Only top voted, non community-wiki answers of a minimum length are eligible