In the movie Star Trek IV: The Voyage Home,
McCOY: Are you really going to try this time travel in this rust bucket?
KIRK: We've done it before.
McCOY: Sure, slingshot around the sun. If you pick up enough speed you're in time warp. If you don't, you fry.
What is Kirk referring to when he says "We've done it before" ?