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).
+
{{incomplete|Created by a SMEARED LEAP SECOND. Please check my calculations of the time if using the 10th February and evenly spread 24 hours over 29 days. Please mention here why this explanation isn't complete. Do NOT delete this tag too soon.}}
 +
This comic references the practice that {{w|Google}} uses on its services of 'smearing' a {{w|leap second}} over the course of a 24-hour period, officially called [https://developers.google.com/time/smear Leap Smear] by Goggle. The smear is centered on the leap second (at midnight) so from noon the day before to the noon the day after each second is 11.6 μs longer (1s/(24*60*60) = 11,574 μs).
  
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.
+
The joke arises from the idea of expanding this idea - instead of just using it for leap seconds, using it for {{w|leap days}} as well,
 +
like that at the end of February 2020, less than 3 weeks after this comic was released.  
  
In the comic, [[Cueball]] is visiting one of Google's facilities, presumably during office hours on the 10th day of February, when the comic was released. But when he looks at their clocks he sees they are all around 3:00 AM (which is in the middle of the night). He thus asks [[Ponytail]] and [[Hairy]] why their clocks are wrong. Ponytail tells him it is because of leap day smearing.
+
In the comic [[Cueball]] is visiting one of Google's facilities, presumable during office hours and in the middle of February, and when he then looks at their a clock he sees they are around 3:00 AM (in the middle of the night) and thus asks [[Ponytail]] and [[Hairy]] why their clocks are wrong. Ponytail then tells him it is because of leap day smearing.
  
Ponytail explains that adding an extra day creates too many glitches. So they just run their clocks 3.4% slower during February. She thus states that it works approximately like leap smearing for seconds, so that the extra day's 24 hours are spread evenly over the course of February, keeping it at the regular 28 days, but still running over 24*29 = 696 hours, even though their clocks only go through 672 hours = 24*28.  
+
Ponytail explains that adding an extra day creates too many glitches. So they just runs their clocks 3.4% slower during February. She thus states that it works approximately like leap smearing for seconds, so that extra days 24 hours are spread evenly out over the course of February, keeping it at the regular 28 days, but still running over 24*29 = 696 hours, even though their clocks only goes through 672 hours (24*28). Thus the 24 hours less spread out over 696 hours means the clocks run 24/696 = 3.445 % slower (matching the 3.4% Ponytail mentions). Ever day will thus be 0.83 hours longer (24/29). So after 9 days, (the comic was released on February 10th), the clocks will be  7 hours and 27 minutes behind at midnight. Thus if such a clock is saying 3:02 AM on February 10th it would mean that the time would actually be 10:35 AM, well within working hours. The last 6 ,minutes comes from the 3 hours and 2 minutes also running 3,4% slower.
  
Thus the 24 hours less to count are spread out over the 696 real hours, which means their clocks run 24/696 = 3.445 % slower (matching the 3.4% Ponytail mentions). Every smeared day will thus be about 0.86 hours, or 51 minutes and 40 seconds, longer (24/28) than a standard day. So when day-smearing clocks read 3:02 AM on February 10th (the comic was released on February 10th), about 9.1264 smeared days will have passed. This translates to about 9.4523 standard days (9.1264*29/28), which is approximately 10:51 AM on February 10th, well within normal working hours.
+
This would of course, contrary to leap second smearing, be very inconvenient for those following it, due to the fact that it would be out of sync with the rotation of the earth for most of the course of the month. And also with all their local business partners. (Of course it would mean they would sync up better with some of their partners abroad, see [[1335: Now]].)
 
 
The joke of course is that contrary to leap second smearing this would be very inconvenient for those following it, due to the fact that clocks would be noticeably out of sync with Earth's rotation (and perhaps more importantly, with everyone else's clocks) for most of the month. (Although it does mean they would sync up better with some of their partners abroad; see [[1335: Now]] and [[448: Good Morning]].) A different kind of time-smearing was looked at in the far earlier comic [[320: 28-Hour Day]], which was actually designed with a form of convenience in mind, and it would be interesting to see what the results could be of creatively combining both systems.
 
 
 
The title text humorously suggests that some people (at Google) suspect that the real reason for the leap day smearing was actually a "No, I didn't forget Valentine's Day" excuse that got out of hand.  The idea is, that maybe a CEO at Google forgot to buy something for their romantic partner for Valentine, and thus tried to suggest that it was not because they forgot, but that at work it was still February 14th.  Presumably, in February 2016, they used this excuse to buy 12 extra hours (as the end of a smeared Feb 14 is exactly halfway through the month) to get their partner a present, and then required the company to actually implement "leap day smearing" by 2020 to maintain the illusion.
 
 
 
[[Randall]] has some issues with [[:Category:Valentines|Valentines]], see for example [[1016: Valentine Dilemma]]. This comic was released four days before {{w|Valentines Day}} of 2020. It was the first time in 8 years he made any reference to Valentine around this time of year, but the seventh time in total. Randall has since not mentioned Valentine's day.
 
 
 
[[1481: API]] also covered leap seconds in its title text.
 
  
 
==Transcript==
 
==Transcript==
Line 44: Line 38:
 
[[Category:Comics featuring Hairy]]
 
[[Category:Comics featuring Hairy]]
 
[[Category:Time]]
 
[[Category:Time]]
[[Category:Calendar]]
 

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)