def simple(self):
        '''A string representation with only one period delimiter.'''
        if self._days:
            return '%sD' % self.totaldays
        elif self.months:
            return '%sM' % self._months
        elif self.years:
            return '%sY' % self.years
        else:
            return ''
def simple ( self ) : if self . _days : return '%sD' % self . totaldays elif self . months : return '%sM' % self . _months elif self . years : return '%sY' % self . years else : return ''
A string representation with only one period delimiter.