Python - Divide date range to N equal duration
Given two dates, the task is to divide it into equal time duration and get the exact time of each division point. Input : test_date1 = datetime.datetime(1997, 1, 4), test_date2 = datetime.datetime(1997, 1, 30) N = 7Output : [datetime.datetime(1997, 1, 4, 0, 0), datetime.datetime(1997, 1, 7, 17, 8, 3