timedelta consecutive days python code example
Example: python timedelta get days with fraction
from datetime import timedelta
def get_days_between(datePast, dateFuture):
difference = dateFuture - datePast
return difference.total_seconds() / timedelta(days=1).total_seconds()