Convert timedelta to floating-point February 23, 2023 by Tarik You could use the total_seconds method: time_d_float = time_d.total_seconds()