Leap Years, Leap Seconds, and an Imperfect Calendar
In order to keep our calendar in sync with solar time, we need to add a day every four years, known as a Leap Year. But doing that is still not accurate. It requires more adjustment. I'll explain the details.
First, a little history of my background. As a Computer Systems Programmer I once had to write an algorithm to determine the day of the week (Monday, Tuesday, etc) for any calendar day.
Since I had to thoroughly understand it to get it right, I studied how the days are calculated based on the position of the Earth.
In our Gregorian Calendar we add an extra day, February 29th, almost every four years. But we have to skip that addition once in a while.
If a year were exactly 365 and a quarter days, then adding a day every four years would work wonderfully. But unfortunately our Earth doesn't go around the sun so perfectly. More precisely, a year is 365.2426 days.
Keeping Extremely Accurate Measurements
We live in a time when we have the resources to do extremely accurate measurements. We have the technology to measure the rotation of the Earth so precisely that we can detect how it is slowing down. We use atomic clocks to keep an accurate account of time.
There are National Standards Agencies in many countries that maintain a network of atomic clocks. They are kept synchronized with extreme accuracy.
In addition, we have the master atomic clock at the U.S. Naval Observatory in Washington providing the time standard for the U.S. Department of Defense.
Managing Those Extra Fractions of Days in Our Calendar
If it took exactly 365 days for the Earth to revolve around the Sun, then we would have a perfect calendar and there would be no need to make corrections. Since it takes 365.2426 days, adding a day every four years is adding too much. We need to skip adding some leap years. But how often?
If that additional fraction over 365 days were exactly .25 (an extra quarter of a day) then every four years adds up to a full day. So we can add that extra day at the end of February every four years. But we don't. We skip some Leap Years.
Things are not that simple because it's not exactly an extra .25 day per year. That fraction I mentioned before  .2426  is a little less than a quarter of a day. So every 100 years we need to skip adding a leap year. Otherwise we would be adding too much.
But wait! That still isn’t perfect!
We Need to Skip a Leap Year Every 100 Years
Skipping a leap year every 100 years only works if the extra time were exactly .25. But we are still off by almost .01 from a quarter day. That .01 adds up to 1 in 100 years. Therefore we need to skip a leap year every 100 years. If we didn't skip it, we'd be adding too may days to the calendar.
But we'll still get out of sync with solar time if we don't take it a step further.
As you can see, we still have that extra .0026 that we are off when skipping a leap year every 100 years. So if you add that up, with some rounding error, that .0026 is a little over 1 day every 400 years (.0026 x 400 = 1.04) . That means that skipping a leap year every 100 years needs adjustment as well  we need to add a day back in.
We Need to Add An Extra Day Every 400 Years
Remember how I said we normally skip a leap year every 100 years? Well, not every 400 years. We need to keep a leap year, anyway, every 400 years in order to get that one extra day added back in.
The easiest way to add that missing day back in is to NOT SKIP a leap year if the year is a multiple of 400, even though it is also a multiple of 100. In other words, we keep February 29th on the calendar every 400 years.
Adding Leap Years
So how does all this work? We add a day every four years, but not every 100 years, unless it’s a 4th century year, at which point we do add that extra day anyway.
Table of Leap Years and the Reasons For It
Year
 Leap Year if Multiple of 4
 But Skip if Multiple of 100
 Unless it's a Multiple of 400
 Leap Year?


1600
 Yes
 
 Yes
 Yes

1700
 Yes
 Yes
 No
 No

1800
 Yes
 Yes
 No
 No

1900
 Yes
 Yes
 No
 No

2000
 Yes
 
 Yes
 Yes

2004
 Yes
 No
 
 Yes

2008
 Yes
 No
 
 Yes

2012
 Yes
 No
 
 Yes

2016
 Yes
 No
 
 Yes

2100
 Yes
 Yes
 No
 No

Adding Leap Seconds
The Earth's Rotation and It's Revolution Around the Sun Is Not Consistent
The algorithm for leap years still does not provide perfect accuracy. Adding a few seconds is also required. Climate and geological events can cause the Earth’s revolution around the Sun to fluctuate. In addition to that, the Earth's rotation around its own axis is not consistent. It tends to slow down and speed up ever so little.
It has been reported that the 9.0 magnitude Earthquake in Japan in 2011 had shifted the Earth's axis by an amount between 10 cm (4 inches) and 25 cm (10 inches). Fluctuations such as this change the length of a day by an eversotiny amount and it needs to be adjusted on our calendar.
In order to improve the accuracy of our time clocks, we need to add a second or two every year. It’s called a leap second. Scheduling the addition of an extra second to a year is done to make these adjustments.
It's generally added when needed as an additional second at the stroke of midnight on June 30th and December 31st. Who decides when these adjustments are made? Believe it or not, we have an agency for that...
The International Earth Rotation and Reference Systems Service applies a leap second whenever necessary to keep our clock from being more than 0.9 of a second off. We added a second at midnight on June 30th, 2015.
Now that you understand all this, you no longer have an excuse for being late when meeting a friend for dinner, or for keeping that appointment with your doctor.
© 2012 Glenn Stok
More by this Author
 20
There are clear reasons why we may never find intelligent life elsewhere in the Universe, even though it may exist, here’s why.
 EDITOR'S CHOICE20
How does language affect our thinking? Do we think in complete sentences? Let's review these questions.
 EDITOR'S CHOICE99
(Video Embedded) How to understand what your check engine light means, how to reset it, and how to avoid expensive car repair bills.
Comments 3 comments
Glen, this was real interesting to know we had a extra leap second last month and next year is a leap year. This was wellwritten and intriguing to know the history behind the leap year. Voted up!
My pleasure Glenn. I always wondered about the leap year and never heard of leap seconds.