How long did Buzz Aldrin stay in the space rocket?

On Apollo 11, about eight days.