I\'d like to be able to do the following:
num_intervals = (cur_date - previous_date) / interval_length
or
print (datetime.n
You can override the division operator like this:
class MyTimeDelta(timedelta): def __div__(self, value): # Dome something about the object