A sundial is a stick and some sunlight. That is the whole machine. The stick, called the gnomon, casts a shadow, and the shadow moves as the sun crosses the sky, and the lines on the plate tell you what that movement means. It is the oldest timekeeping device in the world, and it is still the most honest one, because it shows you the actual sun instead of a number somebody agreed on.

An Egyptian shadow clock, about 1500 BCE. Photo: Wikimedia Commons, CC0.
How it works
The sun appears to circle the Earth once every 24 hours, which means it sweeps about 15 degrees of sky per hour. The sundial turns that sweep into a readable shadow. The important part is the style, the slanted edge of the gnomon, which is angled to point at the celestial pole, parallel to the Earth’s axis. Do that, and the hour lines on the dial come out evenly spaced. Skip it, and you get a dial that lies to you a little more each season.
There are hundreds of dial layouts, vertical ones on walls, horizontal ones on pedestals, equatorial ones tilted to match the latitude, but they all do the same thing. They convert the Earth’s rotation into a shadow you can read. No batteries. No winding. The main failure mode is weather, which is also the main failure mode of picnics.
Egypt: the shadow business
The Egyptians were using shadows to mark time by around 3500 BCE, when obelisks served as enormous public gnomons, and by about 1500 BCE they had the portable version. The shadow clock was a small L-shaped bar with markings along it. You pointed one end at the sun and read the hour off the length of the shadow. Morning on one side, afternoon on the other, flip it at noon. It was cheap, it was personal, and it was the first timepiece you could carry in your hand, which makes it the great-grandfather of the wristwatch in spirit if not in mechanics.
For the night, when shadows quit, the Egyptians used a sighting instrument called the merkhet, lined up on certain stars. Day shift, night shift. They had the whole 24 hours covered thousands of years before anyone else got close.
Greece and Rome: the dial goes public
The famous story is that the gnomon came to Greece with Anaximander of Miletus in the 6th century BCE. Herodotus says so, which is why everybody repeats it, but historians treat it as one of those tidy origin stories that is probably too tidy. Sundials were likely already drifting around the Mediterranean. What the Greeks definitely did was get mathematical about it. Berosus of Babylon is credited with the hemispherical dial, a bowl with the hours carved inside it, and the Roman architect Vitruvius cataloged a whole zoo of dial types in his De Architectura, which tells you the technology was mature enough to need a catalog.
The Romans turned the sundial into public theater. Augustus hauled an obelisk of the pharaoh Psamtik II all the way from Heliopolis to Rome and planted it in the Campus Martius as the gnomon of a giant meridian, the Solarium Augusti, so the shadow of an Egyptian king’s monument told Roman time. Pliny describes it in detail. Archaeologists still argue about exactly how the layout worked, which is the polite way of saying the emperor’s giant sundial may have been more impressive than accurate. Sundials also became garden ornaments, status symbols, and souvenirs. The Roman Empire ran on shadows, and it was fine with that.

A Greek marble sundial. Photo: Wikimedia Commons, CC BY-SA 4.0.
The equation of time
Here is the thing that makes sundials interesting instead of just quaint. A sundial shows apparent solar time, what the actual sun is doing. Your watch shows mean time, an average cooked up so that every day is exactly 24 hours. The real sun refuses to cooperate. Because the Earth’s orbit is elliptical and its axis is tilted, the length of the true solar day wobbles through the year, and a sundial can disagree with a clock by up to about 16 minutes.
The difference has a name, the equation of time, and for centuries every serious sundial carried a little correction table so you could convert sun time to clock time. If you have ever seen an analemma, that lopsided figure-eight drawn on globes and old dials, that is the equation of time made visible: the sun’s annual wobble, drawn as a shape. The sundial was never wrong. It was just answering a different question than the clock.
This is also why sundials are still worth your attention. An equatorial dial, with its plate parallel to the equator, shows you the Earth’s rotation directly, one shadow sliding at a perfectly steady pace while everything else in your life runs on averaged, legislated, daylight-saving time. Garden dials, wall dials, and the occasional human sundial where you stand on the month marker and your own shadow is the hand, they all teach the same lesson. The clock on your wall is a convention. The sundial is the thing the convention is approximating.
The night shift, meanwhile, belonged to dripping water for three thousand years. That is the subject of Water Clocks, and the gears that eventually replaced both are in Mechanical Clocks. The full sweep from shadow to atom is in the History of Timekeeping overview.
Why it matters
Every watch you will ever own is a machine for displaying mean solar time, a polite fiction averaged over the year. The sundial displays the truth underneath the fiction, the actual sun, wobbling and all. Understanding the difference is understanding what your watch is actually doing, and why the equation of time shows up as a complication on high-end dials. The oldest clock still has something to teach the newest one.
Thanks for reading this.

