khard/carddav_object.py
def get_birthday(self):
        """:returns: contacts birthday or None if not available
            :rtype: datetime.datetime or str
        """
        # vcard 4.0 could contain a single text value
        try:
            if self.vcard.bday.params.get("VALUE")[0] == "text":
                return self.vcard.bday.value
        except (AttributeError, IndexError, TypeError):
            pass
        # else try to convert to a datetime object
        try:
            return helpers.string_to_date(self.vcard.bday.value)
        except (AttributeError, ValueError):
            pass
        return None
def get_birthday(self):
        """:returns: contacts birthday or None if not available
            :rtype: datetime.datetime or str
        """
        # vcard 4.0 could contain a single text value
        try:
            if self.vcard.bday.params.get("VALUE")[0] == "text":
                return self.vcard.bday.value
        except (AttributeError, IndexError, TypeError):
            pass
        # else try to convert to a datetime object
        try:
            return helpers.string_to_date(self.vcard.bday.value)
        except (AttributeError, ValueError):
            pass
        return None
def get_birthday ( self ) : # vcard 4.0 could contain a single text value try : if self . vcard . bday . params . get ( "VALUE" ) [ 0 ] == "text" : return self . vcard . bday . value except ( AttributeError , IndexError , TypeError ) : pass # else try to convert to a datetime object try : return helpers . string_to_date ( self . vcard . bday . value ) except ( AttributeError , ValueError ) : pass return None
:returns: contacts birthday or None if not available
            :rtype: datetime.datetime or str
: returns : contacts birthday or None if not available : rtype : datetime . datetime or str