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

def TruncDelta ( delta ) : return datetime . timedelta ( days = delta . days , seconds = delta . seconds )
strips microseconds from a timedelta .