def _subtract_timedelta(self, delta):
        """
        Remove timedelta duration from the instance.

        :param delta: The timedelta instance
        :type delta: pendulum.Duration or datetime.timedelta

        :rtype: DateTime
        """
        if isinstance(delta, pendulum.Duration):
            return self.subtract(
                years=delta.years,
                months=delta.months,
                weeks=delta.weeks,
                days=delta.remaining_days,
                hours=delta.hours,
                minutes=delta.minutes,
                seconds=delta.remaining_seconds,
                microseconds=delta.microseconds,
            )

        return self.subtract(
            days=delta.days, seconds=delta.seconds, microseconds=delta.microseconds
        )
def _subtract_timedelta ( self , delta ) : if isinstance ( delta , pendulum . Duration ) : return self . subtract ( years = delta . years , months = delta . months , weeks = delta . weeks , days = delta . remaining_days , hours = delta . hours , minutes = delta . minutes , seconds = delta . remaining_seconds , microseconds = delta . microseconds , ) return self . subtract ( days = delta . days , seconds = delta . seconds , microseconds = delta . microseconds )
Remove timedelta duration from the instance.

        :param delta: The timedelta instance
        :type delta: pendulum.Duration or datetime.timedelta

        :rtype: DateTime