I got a timedelta object from the subtraction of two datetimes. I need this value as floating point for further calculations. All that I\'ve found enables the calculation wi
If you needed the number of days as a floating number you can use timedelta's days attribute
time_d = datetime_1 - datetime_2 number_of_days = float(time_d.days)