The Time Machine (episode)

Episode 27 of the 1980 TV series

Plot
A time traveler named Rock comes and takes Astro along with Black Jack to help a princess in the past.