A sundial is a device that tells the time of day by the position of the sun. It consists of a flat plate, called the dial, with a raised piece called a gnomon that casts a shadow onto the dial. As the sun moves across the sky, the shadow of the gnomon moves, indicating the time.
Sundials have been used for centuries as one of the earliest timekeeping devices, and they come in various designs and styles, from simple portable ones to elaborate ornamental structures in gardens and public spaces.