You asked:

how long has bill cosby been married

Sorry, I don't yet have an answer to that question.