Absolute and relative dating of rock