def getXRDExpiration(xrd_element, default=None):
    expires_element = xrd_element.find(expires_tag)
    if expires_element is None:
        return default
    else:
        expires_string = expires_element.text

        # Will raise ValueError if the string is not the expected format
        expires_time = strptime(expires_string, "%Y-%m-%dT%H:%M:%SZ")
        return datetime(*expires_time[0:6])
Return the expiration date of this XRD element, or None if no
dataset/ETHPy150Open necaris/python3-openid/openid/yadis/etxrd.py/getXRDExpiration