Open in app
Cover art for Why leap seconds exist and break our digital world

Why leap seconds exist and break our digital world

Science · 4 min listen

Get the app on mobile
Download on the App Store Get it on Google Play
Cover art for Why leap seconds exist and break our digital world
0:00
0:00
Transcript

HostHave you ever looked at a digital clock and seen a time that shouldn't really exist? I'm talking about seeing twenty-three, fifty-nine, sixty. It looks like a glitch in the system, but it's actually a real thing called a leap second. Why do we need to force this ghost second into our day?

GuestIt's because we're trying to manage two very different clocks that are constantly drifting apart. The first is what we call astronomical time, which is based on how long it takes the Earth to finish one full spin. The second is coordinated universal time, which is kept by the vibration of atoms in very precise atomic clocks. These atomic clocks are perfect. They never skip a beat. But the Earth is a bit messy and its spin isn't perfectly steady. Because of that, a gap starts to grow between the atoms and the stars. We have to fix that by hand to keep the two clocks within point nine seconds of each other. That extra second is just us hitting the pause button for a moment so the Earth has time to catch up. It ensures our clocks stay synced with the sun and the cycles of day and night.

HostBut if the atomic clock is the one that's actually accurate, why do we bother with the Earth time at all? Why not just let the atoms lead the way?

GuestWe want twelve o'clock to stay roughly when the sun is at its highest point in the sky. If we ignored the Earth, eventually our clocks wouldn't match the world outside. After a long enough time, your clock could say it's noon while it's actually pitch black. The big issue is that the Earth is losing its energy and slowing down. The main culprit is the moon. The moon’s gravity pulls on our oceans, which creates a bulge of water. As the Earth spins, it has to rotate through that bulge. This acts like a set of brakes on the planet. This drag lengthens the day by about one point seven milliseconds every hundred years. It sounds tiny, but those bits of time pile up every single day.

HostIf the moon is what's slowing us down, why can't we predict it? Why is it always a last-minute reaction?

GuestThe moon is the main player, but the Earth is complicated. We have a molten core of metal sloshing around deep inside, and we have giant plates of rock on the surface that shift. These things can make the planet speed up or slow down in ways that are hard to guess. Because it's so unpredictable, timekeepers have to watch the Earth and see if a leap second is even needed before they announce one. That wait-and-see approach is a nightmare for technology. Most computer software is built on the rigid rule that a minute never has more than sixty seconds. When that impossible sixty-first second shows up, it can cause huge failures. It has grounded entire airlines and crashed major websites because their systems just didn't know how to handle the extra time.

HostI still don't get why one single second breaks an entire system. Does the computer just see a number it doesn't like and panic?

GuestIt's about a rule called monotonicity. That's just a way of saying that for a computer, time must always move forward at a steady, predictable rate. Many systems use a standard that assumes a day has exactly tens of thousands of seconds. When you force an extra one in, the computer might see the same timestamp twice, or it might think time has actually jumped backward. This leads to a state called livelock. The brain of the computer gets stuck in a loop where it keeps running in circles trying to fix the duplicate time. It's like a record player getting stuck on a scratch, repeating the same bit over and over and never moving on. To avoid this, some tech giants use a trick called leap smearing. They slowly add tiny fractions of a second over a full day so the clock never actually has to show twenty-three, fifty-nine, sixty. It works, but it's such a digital headache that timekeepers finally voted to phase out the leap second entirely by twenty-thirty-five.

HostAfter all these years of trying to keep the atoms and the stars in line, we're finally just letting them drift apart. It's wild to think that the ghost second on the clock is going away mostly because our machines can't handle how messy the Earth really is.

Made with Wander

A world of curiosity you can listen to. Explore endless questions, or ask your own.

Get the app