for timedelta, use .total_seconds()