Air is trapped in glacial ice. One takes cores of this ice, and one can determine both the age of a particular core layer and the amount of carbon dioxide in that layer.

Citing skepticalscience.com is like citing geocentrism.com on orbital astronomy.