import pywikibot

repo=pywikibot.Site('wikidata','wikidata').data_repository()
wditem=pywikibot.ItemPage(repo,'Q460960')
wditem.get()
husbandclaim=wditem.claims.get('P26')[0]
print(husbandclaim.qualifiers)
for qualifier in husbandclaim.qualifiers:
    print('Q: %s' % qualifier)
if ('P580' in husbandclaim.qualifiers):
    print('Ja, zit erin')
    qualifier=husbandclaim.qualifiers['P580'][0]
    print('QQ: %s-%s\n\n' % (type(qualifier),qualifier))
    content=qualifier.getTarget()
    print(dir(content))
    print('\n\nResult: %d/%d/%d' % (content.year,content.month,content.day))
    
#zo kon ik wel achterhalen wat het was:    
#for x in dir(husbandclaim):
#    print(x)
OrderedDict([('P580', [Claim.fromJSON(DataSite("wikidata", "wikidata"), {'snaktype': 'value', 'property': 'P580', 'datatype': 'time', 'datavalue': {'value': {'time': '+00000002002-02-02T00:00:00Z', 'precision': 11, 'after': 0, 'before': 0, 'timezone': 0, 'calendarmodel': 'http://www.wikidata.org/entity/Q1985727'}, 'type': 'time'}, 'hash': '476457719699069a7977cb33d30f64d40a419dda'})])])
Q: P580
Ja, zit erin
QQ: <class 'pywikibot.page.Claim'>-Claim.fromJSON(DataSite("wikidata", "wikidata"), {'snaktype': 'value', 'property': 'P580', 'datatype': 'time', 'datavalue': {'value': {'time': '+00000002002-02-02T00:00:00Z', 'precision': 11, 'after': 0, 'before': 0, 'timezone': 0, 'calendarmodel': 'http://www.wikidata.org/entity/Q1985727'}, 'type': 'time'}, 'hash': '476457719699069a7977cb33d30f64d40a419dda'})


['FORMATSTR', 'PRECISION', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_items', 'after', 'before', 'calendarmodel', 'day', 'fromTimestamp', 'fromTimestr', 'fromWikibase', 'hour', 'minute', 'month', 'precision', 'second', 'timezone', 'toTimestamp', 'toTimestr', 'toWikibase', 'year']


Result: 2002/2/2