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
  expires_time = strptime(expires_string, '%Y-%m-%dT%H:%M:%SZ')
  return datetime(*expires_time[0:6])

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 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 .