Isotopes of potassium decay to argon and the amount of accumulated argon - combined with knowledge of the decay rate - allows one to use the system as a clock:
The Wikipedia page covers these issues, albeit for crystalized rock instead of ice. The measurement is a ratio, so the key thing is establishing that Argon 40 is normally not present in rain or brand new ice.
https://en.wikipedia.org/wiki/K%E2%80%93Ar_dating