The texture of sedimentary rocks, like the size of grains or chemical precipitates can show how the rock was formed. The fossils of sedimentary rocks can show when the rock was formed. The stratification and sorting of the particles can show were the rock was formed.
When the Sun, Moon and Earth are inline