Dating and correlating rock layers