Now, I'm not a scientist, but atmospheric scientists will look for traces in the air chemistry in geology, a bit like how rocks can oxidize, and they'll extrapolate that information and aggregate it, such that they can pretty much form a recipe for the air at different times.