In Star Wars IV: A New Hope, Luke sounds surprised to learn that Obi-Wan fought in the Clone Wars. I haven’t watched it recently, but I think he even said, “…but that was so long ago!?”
But according to the prequels, the Clone Wars lasted at least until Luke’s birth. So we’re talking about 20 years - not a lot of time at all!?
the Clone Wars lasted at least until Luke's birth
techicianlly Darth Vader (still in the human body of Anikan Skywalker) ended the Clone Wars before Luke's birth when he killed the Separatist leaders on Mustafar, which was probably hours before Luke & Leia's birth.