# instead, can convert timedelta to float of second time_d_float = time_d.total_seconds()
# To seconds time_d_float = time_d.total_seconds() # To minutes (or other) time_d_min = time_d / datetime.timedelta(minutes=1)