minutes to store time points in minutes.HH:MM format to minutes since midnight and add to minutes list.minutes list.min_diff to a large value (e.g., float('inf')).minutes list and calculate the difference between consecutive times, updating min_diff with the minimum value found.min_diff if this difference is smaller.min_diff as the final result.