(self)
return timedelta(
        seconds=self.seconds, microseconds=_RoundTowardZero(
            self.nanos, _NANOS_PER_MICROSECOND))
Converts Duration to timedelta.
Converts Duration to timedelta.
Converts Duration to timedelta .
def ToTimedelta(self):
    """Converts Duration to timedelta."""
    return timedelta(
        seconds=self.seconds, microseconds=_RoundTowardZero(
            self.nanos, _NANOS_PER_MICROSECOND))
def ToTimedelta ( self ) : return timedelta ( seconds = self . seconds , microseconds = _RoundTowardZero ( self . nanos , _NANOS_PER_MICROSECOND ) )