def _TruncDelta(timedelta):
 return datetime.timedelta(days=timedelta.days, seconds=timedelta.seconds)

def _TruncDelta ( timedelta ) : return datetime . timedelta ( days = timedelta . days , seconds = timedelta . seconds )
strips the microseconds field from a timedelta .