Editing 2266: Leap Smearing

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 8: Line 8:
  
 
==Explanation==
 
==Explanation==
Clocks {{w|Japanese clock|usually}} measure time by regularly-sized intervals, but the natural world is not always so accommodating.  Since the solar year is not an integer number of days long, we add {{w|leap days}} every four years (except for years divisible by 100 but not 400) to prevent our calendars from drifting with respect to the seasons.  We also add {{w|leap seconds}} to the clock every now and then, to prevent noon on our clocks from drifting away from solar noon.  Unfortunately, Earth's day is not as regular as Earth's year, so leap seconds cannot be predicted with a formula but are added as needed, most recently in 2016.  Officially, the leap second is added at midnight UTC (so a clock will tick 23:59:59...'''23:59:60'''...00:00:00), but this is an extremely inconvenient edge case, to the point that there are many proposals to do away with leap seconds entirely (as of this comic strip's publication, the matter will be discussed in the World Radiocommunication Conference in 2023).
+
Clocks {{w|Japanese clock|usually}} measure time by regularly-sized intervals, but the natural world is not always so accommodating.  Since the solar year is not an integral number of days long, we add {{w|leap days}} every four years (except for years divisible by 100 but not 400) to prevent our calendars from drifting with respect to the seasons.  We also add {{w|leap seconds}} to the clock every now and then, to prevent noon on our clocks from drifting away from solar noon.  Unfortunately, Earth's day is not as regular as Earth's year, so leap seconds cannot be predicted with a formula but are added as needed, most recently in 2016.  Officially, the leap second is added at midnight UTC (so a clock will tick 23:59:59...'''23:59:60'''...00:00:00), but this is an extremely inconvenient edge case, to the point that there are many proposals to do away with leap seconds entirely (as of this comic strip's publication, the matter will be discussed in the World Radiocommunication Conference in 2023).
  
 
Rather than inserting an extra tick into timestamps and dealing with the resulting hiccups (e.g. programs hard-coded to expect that [https://infiniteundo.com/post/25509354022/more-falsehoods-programmers-believe-about-time#_=_ every minute will contain exactly sixty seconds]), {{w|Google}}'s services 'smear' the leap second over the course of a 24-hour period, officially called [https://developers.google.com/time/smear Leap Smear] by Google. The smear is centered on the leap second (at midnight) so from noon the day before to noon the day after each second is 11.6 μs longer (1s/(24*60*60) = 11.574 μs). This difference is too small for most of Google's services to be bothered with, and by centering on midnight, the difference in time will never be more than half a second at midnight; just before midnight it will be half a second behind, after midnight it'll be half a second ahead.  This comic's joke arises from the idea of extending this practice to smearing leap days over the month of February.  This comic strip was published February 10th, 2020, almost three weeks before the leap day on February 29th, 2020.
 
Rather than inserting an extra tick into timestamps and dealing with the resulting hiccups (e.g. programs hard-coded to expect that [https://infiniteundo.com/post/25509354022/more-falsehoods-programmers-believe-about-time#_=_ every minute will contain exactly sixty seconds]), {{w|Google}}'s services 'smear' the leap second over the course of a 24-hour period, officially called [https://developers.google.com/time/smear Leap Smear] by Google. The smear is centered on the leap second (at midnight) so from noon the day before to noon the day after each second is 11.6 μs longer (1s/(24*60*60) = 11.574 μs). This difference is too small for most of Google's services to be bothered with, and by centering on midnight, the difference in time will never be more than half a second at midnight; just before midnight it will be half a second behind, after midnight it'll be half a second ahead.  This comic's joke arises from the idea of extending this practice to smearing leap days over the month of February.  This comic strip was published February 10th, 2020, almost three weeks before the leap day on February 29th, 2020.

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)