Slashdot Mirror


June 30th Leap Second Could Trigger Unexpected Issues

dkatana writes: On January 31, 2013, approximately 400 milliseconds before the official release of the EIA Natural Gas Report, trading activity exploded in Natural Gas Futures. It is believed that was the result of some fast computer trading systems being programmed to act, and have a one-second advance access to the report. On June 30th a leap second will be added to the Network Time Protocol (NTP) to keep it synchronized with the slowly lengthening solar day. In this article, Charles Babcock gives a detailed account of the issues, and some disturbing possibilities: The last time a second needed to be added to the day was on June 30, 2012. For Qantas Airlines in Australia, it was a memorable event. Its systems, including flight reservations, went down for two hours as internal system clocks fell out of synch with external clocks.

The original author of the NTP protocol, Prof. David Mills at the University of Delaware, set a direct and simple way to add the second: Count the last second of June 30 twice, using a special notation on the second count for the record. Google will use a different approach: Over a 20-hour period on June 30, Google will add a couple of milliseconds to each of its NTP servers' updates. By the end of the day, a full second has been added. As the NTP protocol and Google timekeepers enter the first second of July, their methods may differ, but they both agree on the time.

But that could also be problematic. In adding a second to its NTP servers in 2005, Google ran into timekeeping problems on some of its widely distributed systems. The Mills sleight-of-hand was confusing to some of its clusters, as they fell out of synch with NTP time. Does Google's smear approach make more sense to you, or does Mills's idea of counting the last second twice work better? Do you have a better idea of how to handle this?

166 of 233 comments (clear)

  1. Doesn't matter by StormShaman · · Score: 5, Informative

    The only problem mentioned is that they fall out of sync with each other. If they're both otherwise fine, just pick one. Sounds like the disadvantages of either one aren't as big as the disadvantage of them not working well together.

  2. Leap seconds are for Luddites. by Anonymous Coward · · Score: 1, Funny

    Modern app appers app track of time using apps, not Luddite leap seconds!

    Apps!

  3. Google is right by phishybongwaters · · Score: 5, Interesting

    Typically when dealing with NTP you do not want big swings. In fact, a system using NTP that's too far out of sync, won't sync back up correctly. One that is slightly out of sync will slowly come back in sync over a period of time, hours or days even. Both approaches could work, they really could, but I think adding a few milliseconds here and there is a better way to get this done as long as the systems don't fall too far behind. I work with Avaya voice equipment and we've been warning people about this for months and months. We've provided instructions on several methods to ensure this doesn't cripple your system, but it all depends on how your NTP is setup. I also foresee issues with just adding an extra second to the day, this is not going to work for a bunch of systems and will actually throw them out of sync compared to googles approach. One of the solutions we've "provided" is to disable NTP shortly before the time roll over, then enable it once it's July. That's a pain in the butt, but if you can afford the few minutes of service interruption, it solves all of the issues right there, you turn it off when it's synced, turn it back on and it syncs to the new time. The real issues come in, for my field at least, with logging, this is going to throw a wrench into sys logs if it's not taken care of, and with some of the platforms, it will literally cripple the system.

    1. Re:Google is right by turbidostato · · Score: 1

      "Typically when dealing with NTP you do not want big swings."

      A second is not a "big swing" in general computation parlance. People working on near-RT systems already know -or should know, how to cope with leap seconds.

      "In fact, a system using NTP that's too far out of sync, won't sync back up correctly."

      Five to fifteen seconds at least. We are talking a different league, almost a different sport here.

      "I work with Avaya voice equipment and we've been warning people about this for months and months. We've provided instructions on several methods to ensure this doesn't cripple your system"

      Maybe the problem is that those Avaya systems should be able to cope with leap seconds on their own without having to warn and provide instructions.

      "with some of the platforms, it will literally cripple the system."

      Fill a bug and solve it.

    2. Re:Google is right by 0123456 · · Score: 1

      People working on near-RT systems already know -or should know, how to cope with leap seconds.

      Hey, guess what, those guys they outsourced the software development to in the third world... don't. And they know they'll have moved on to a new job by the time the next leap second happens.

      The rest of us have to deal with their hardware not doing what it's supposed to when the leap second hits.

    3. Re:Google is right by Penguinisto · · Score: 2

      Typically when dealing with NTP you do not want big swings.

      This is a solved problem, though (sibling points out the reason why: slew.) In practice, this is also a known conditions, especially with virtual machines (doubly so with VMWare-hosted VMs). This is because VM's time-slice the physical CPU, so the keeping time on the VM's OS clock is very imperfect anyway.

      --
      Quo usque tandem abutere, Nimbus, patientia nostra?
  4. Re:Buggy software is buggy by pla · · Score: 2

    Also, most if not all languages have libraries that can handle accurate timing very well.

    I would consider t-SQL and *.NET pretty major languages, that completely fail to handle leap seconds.

  5. Re:Buggy software is buggy by CaptainJeff · · Score: 2

    But...it's not.
    Because you have different approaches to it. If the community could agree on how to address the (growing) difference in time as measured by Earthborn measures with solar/Earth/rotation measures, then it would be. But, there are legitimate and valid disagreements with how time should be kept.

  6. choose what standard to violate by at10u8 · · Score: 4, Informative

    A problem for sysadmins is that the status quo of the standards requires that we choose which standard we want to violate. We can violate the specification of UTC by not counting 23:59:60 or we can violate POSIX by counting it or we can violate POSIX and the SI second by not actually keeping the system clock on UTC using smeared seconds that are not suitable for tracking projectiles and other real-time applications. This problem is old, 50 years old, as seen in the 3 plots on this web page.

    1. Re:choose what standard to violate by mbone · · Score: 3, Insightful

      If the POSIX standards people had bothered to actually follow the existing SI and ITU standards back in 1988 when they were setting up their standard, this would not be an issue.

    2. Re:choose what standard to violate by suutar · · Score: 2

      one of the links from that page talks about how using custom timezone files you can use non-leap seconds and still translate to accurate real-world values. I'm not terribly familiar with time keeping protocols; installing ntp and pointing it at a server is about as far as I can manage. Do you see a problem with the approach laid out at "Correct precision handling of leap seconds using code already on POSIX systems "?

    3. Re:choose what standard to violate by butlerm · · Score: 1

      > Huh? The POSIX time specification make it trivial to calculate dates using simple arithmetic

      True, but the same property also makes the use of POSIX time for precision timing basically suicidal. POSIX time is a convenient and adequate encoding of civil time, as long as you do not need more than one second of accuracy.

      If you want to reliably measure or timestamp anything with more than one second of accuracy you should be using a clock derived or offset from a reliable clock instead. The use of POSIX time for precision timekeeping - even use by such rudimentary applications as 'make' - was defective from the beginning. NTP is equally defective as a consequence.

  7. Ablate the trailing side of the Moon by eis2718bob · · Score: 1

    A couple of nuke blasts on the moon would let us keep the Earth's rotation in sync with our atomic clocks. It's practice for asteroids, and good entertainment too!

    1. Re:Ablate the trailing side of the Moon by jfdavis668 · · Score: 1

      No, that will fling the Moon into interstellar space. http://en.wikipedia.org/wiki/S...

    2. Re:Ablate the trailing side of the Moon by mbone · · Score: 1

      A couple of nuke blasts on the moon would let us keep the Earth's rotation in sync with our atomic clocks. It's practice for asteroids, and good entertainment too!

      You do know that leap seconds are driven by angular momentum fluctuations in the Earth's liquid outer core? I don't think the Moon has much to do with those.

    3. Re:Ablate the trailing side of the Moon by mrbester · · Score: 1

      At least it will have the funkiest theme in sci-fi to see it off

      --
      "Wait. Something's happening. It's opening up! My God, it's full of apricots!"
    4. Re:Ablate the trailing side of the Moon by alex67500 · · Score: 1

      A couple of nuke blasts on the moon would let us keep the Earth's rotation in sync with our atomic clocks. It's practice for asteroids, and good entertainment too!

      You do know that leap seconds are driven by angular momentum fluctuations in the Earth's liquid outer core? I don't think the Moon has much to do with those.

      You mean like the Moon has no influence on other liquids on Earth?

  8. Dice: Please restore the Read More link. Thanks. by Anonymous Coward · · Score: 5, Insightful

    I understand the desire to change things, but putting some social media Share link in place of the Read More link goes against the kind of website Slashdot is.

    Please restore the original layout. Thanks.

  9. their approach is called: SLEW by Jizzbug · · Score: 2

    Their method has a name in NTP parlance, it is called slew.

    See man page ntpd(8).

    --

    -=/\- Jizzbug -/\=-
  10. Sync by Espectr0 · · Score: 3, Informative

    We have 600 machines in my company's network distributed over 20 cities in our country. The servers are all located on our main branch and are connected through slow WAN frame relay links (up to 4Mbps)

    We have time differences between machines, sometimes up to 3 or 4 minutes, and we don't seem to have issues. I find it strange than a possible 1 second different could cause so much issues.

    Perhaps the Google method is better because the adjustment will take place during the day and not at the last second.

    1. Re:Sync by 0123456 · · Score: 4, Informative

      I find it strange than a possible 1 second different could cause so much issues.

      It's not the time difference that causes problems per se, it's time going backwards. You presumably missed the fact that many Java servers crashed over the last leap second because of a kernel bug that screwed up their internal timers?

      We had problems last time due to faults reported by external hardware when it saw the time jump backwards. I'll be at my desk when it happens this time to deal with any problems that come up this time.

      And, given the chaos every leap second causes, hopefully we can finally convince the 'experts' to stop fiddling with time.

    2. Re:Sync by NatasRevol · · Score: 1

      This.

      With the exception of highly precise equipment, if your systems crash & burn because of 1 second differences, you're doing something wrong.

      --
      There are two types of people in the world: Those who crave closure
    3. Re:Sync by DigiShaman · · Score: 2

      Windows Active Directory I presume? You have a slack of about 5 seconds between DC (Domain Controllers) and member machines. Otherwise, you might get the following error in the event logs.

      Event ID 50: The time service detected a time difference of greater than 5000 milliseconds for 900 seconds. The time difference might be caused by synchronization with low-accuracy time sources or by suboptimal network conditions. The time service is no longer synchronized and cannot provide the time to other clients or update the system clock. When a valid time stamp is received from a time service provider, the time service will correct itself.

      --
      Life is not for the lazy.
    4. Re:Sync by Sarten-X · · Score: 1

      Similarly, a five-minute offset will prohibit logins and group policy updates. If your Windows Time Service configuration is pushed via group policy, you're kinda screwed, and you'll need to have a local admin on site to nudge the clock in the right direction.

      --
      You do not have a moral or legal right to do absolutely anything you want.
    5. Re:Sync by ceoyoyo · · Score: 1

      If you've got equipment that needs such high precision and you're synchronizing it with NTP rather than an internal standard, you're doing something wrong.

    6. Re:Sync by Espectr0 · · Score: 2

      We experience this issues when the motherboard battery dies and resets the computer's date to year 2000 or such. Since most users aren't admins, the machines can't receive the correct time on their accounts therefore we logon with our admin accounts and the time corrects itself.

      But for 3-4 minutes we don't have issues.

    7. Re:Sync by NatasRevol · · Score: 1

      With the exception of highly precise equipment

      It's not like I wrote a huge wall of text...

      --
      There are two types of people in the world: Those who crave closure
    8. Re:Sync by NatasRevol · · Score: 1

      Agreed. Slew is acceptable in using NTP. Slew is often more than 1 second.

      --
      There are two types of people in the world: Those who crave closure
    9. Re:Sync by 0123456 · · Score: 1

      Agreed. Slew is acceptable in using NTP. Slew is often more than 1 second.

      If I remember correctly, NTP has a leap-second flag which indicates that the time should jump by a second at midnight. It doesn't slew, at least on Linux... otherwise different machines would be reporting different times until they'd all slewed back to what they should be.

    10. Re:Sync by ceoyoyo · · Score: 2

      Slew can be used in NTP for any clock adjustment, not just leap seconds. Linux does use slew (as opposed to step) to make clock adjustments. In the special case of leap seconds, it uses step, rather than slew.

    11. Re:Sync by DigiShaman · · Score: 1

      Solved.

      https://www.petri.com/forums/f...

      I ran into similar issues with DCs running as a VM under Hyper-V. It was a long time ago when 2008 (non-R2 edition) was first released. But yeah, no problem since then as all DCs have internet connectivity to poll the NTP server.

      --
      Life is not for the lazy.
    12. Re:Sync by TheCarp · · Score: 1

      I believe the proper phrase would be CAN use slew. Its actually a command line option on startup of ntp.

      I only know this because a particular piece of software I have had to install requires it and will refuse to install if its not set.

      --
      "I opened my eyes, and everything went dark again"
    13. Re:Sync by TheCarp · · Score: 1

      5 minutes? That is nothing, we had a bug in one of our builds were we forgot to set hardware clock. Turns out our blade vendor was sending us systems with the clock set years in the past, so after build, the system would boot with hardware time, refuse to sync the clock due to the enormous skew, and then refuse logins because..... our ldap ssl certificates were not YET valid!

      --
      "I opened my eyes, and everything went dark again"
    14. Re:Sync by ceoyoyo · · Score: 4, Informative

      I'm not sure exactly what arguments each Linux distribution uses, but this is from the man page on ntpd:

      -x
      Normally, the time is slewed if the offset is less than the step threshold, which is 128 ms by default, and stepped if above the threshold. This option forces the time to be slewed in all cases. If the step threshold is set to zero, all offsets are stepped, regardless of value and regardless of the -x option. In general, this is not a good idea, as it bypasses the clock state machine which is designed to cope with large time and frequency errors Note: Since the slew rate is limited to 0.5 ms/s, each second of adjustment requires an amortization interval of 2000 s. Thus, an adjustment of many seconds can take hours or days to amortize. This option can be used with the -q option.

      My reading of that is that the normal adjustment uses slew. Step is used only when there's a big discrepancy, and you can use -x to use slew even in that case.

    15. Re:Sync by Espectr0 · · Score: 1

      I'm in Venezuela, sadly this is what we use over here

  11. Re:How Will The Naval Observatory Clock Handle Thi by ledow · · Score: 2

    That's not the problem.

    Leap seconds are inserted by pretending that there's a 61st second in a minute. Everything not designed to handle that will fall flat on its face.

    It's not a question of not knowing what time it is, it's a question of whether your software was built with certain (I would say not unreasonable at first glance) assumptions, or whether it follows the actual specification of the functions it uses and the data structures it handles.

    58, 59, 60, 0, 1 tends to blow a lot of stuff up that was never built to handle such instances.

  12. Re:Dice: Please restore the Read More link. Thanks by enigma32 · · Score: 4, Informative

    +1 - Mod parent up.

  13. Re:How Will The Naval Observatory Clock Handle Thi by 0123456 · · Score: 2

    Linux (at least the kernel we run) handles a leap second as 23:58, 23:59, 23:59, 00:00. Code that has to do something specific at 23:59 then ends up doing it twice, unless you detect that and deal with it.

  14. We need a long-term solution by ErikTheRed · · Score: 3, Funny

    even if it means re-defining the second or decoupling official time measurements from planetary movement. Leap days, leap seconds, etc., are silly hacks that belong in a bygone era.

    --

    Help save the critically endangered Blue Iguana
    1. Re:We need a long-term solution by ceoyoyo · · Score: 1

      We have at least three of them. GPS, LORAN and TAI standards do not include leap seconds. They drift ahead of UTC, but they're designed for applications that need good synchronization without having to worry about things like leap seconds. UTC is designed so that the sun will always be up during the day and down at night.

      If synchronization is what you want, use one of the standards designed for it.

    2. Re:We need a long-term solution by aardvarkjoe · · Score: 1

      UTC is designed so that the sun will always be up during the day and down at night.

      There have been 25 leap seconds since 1972. At that rate, it will take around 6000 years for UTC to be even an hour different from TAI. Leap seconds don't have any appreciable impact on the sun always being up during the day.

      I don't think anyone really cares about whether we use UTC or some other system, though. The problem is that software/hardware vendors have all been using the wrong time standard -- nobody but astronomers actually has a reason to want UTC. We just need to get developers to use a different standard that doesn't have the stupid leap second problem.

      --

      How can we continue to believe in a just universe and freedom to eat crackers if we have no ale?
    3. Re:We need a long-term solution by Bengie · · Score: 1

      Exactly! Once we start colonizing other plants, time will never be in sync with the Sun for all places. Lets just agree on a rate and an epoch. The rate at which time de-synchs with the visible day is so slow, it'll spread over generations and at some point in the future, 12am local time will be "noon", but who cares. What's way off in the future and it will be normal for those people.

    4. Re:We need a long-term solution by ceoyoyo · · Score: 1

      *always* be up during the day.

      If you think a leap second is a pain, you should try switching to a new calendar. Some people can actually think past the next quarterly report.

      Personally, I think leap seconds are a great idea because they expose shoddily made software and hardware. If you (think you) need sub-second synchronization and just tossed in an NTP server instead of implementing a proper synchronization mechanism, you likely cut corners somewhere else too.

    5. Re:We need a long-term solution by aardvarkjoe · · Score: 1

      If you think a leap second is a pain, you should try switching to a new calendar. Some people can actually think past the next quarterly report.

      There's a difference between not looking past the next quarterly report, and not worrying about a completely unrealistic scenario -- in this case, that my software will still be running 50,000 years from now when there actually is a disagreement in date between UTC and another standard.

      Personally, I think leap seconds are a great idea because they expose shoddily made software and hardware.

      Introducing pointless complexity to try to "catch" poor software or hardware is a bad idea. Engineering is a hard enough job without purposefully making it harder.

      --

      How can we continue to believe in a just universe and freedom to eat crackers if we have no ale?
    6. Re:We need a long-term solution by mbone · · Score: 1

      UTC is designed so that the sun will always be up during the day and down at night.

      There have been 25 leap seconds since 1972. At that rate, it will take around 6000 years for UTC to be even an hour different from TAI.

      The long term behavior is a quadratic, so it will speed up; there could easily be multiple leap seconds per year by 2100. Likewise, the difference was about 4 hours only 2000 years ago (and, yes, we do have usable astronomical data going back to about 800 BC).

    7. Re:We need a long-term solution by mbone · · Score: 1

      We have that, and it's call "TAI."

    8. Re:We need a long-term solution by Anne+Thwacks · · Score: 1
      Some people can actually think past the next quarterly report.

      High frequency traders are busy looking at the next 1 second's report. If they can buy AFTER they sell by taking advantage of the fact that two different trading platforms do it two different ways, then there is a serious risk that the dollar will be toast

      No one cares if it takes one second longer to log in to a .NET system.

      Quite a few people care that there are traders who probably have devoted weeks to figuring out how to sell the entire content of Fort Knox, and buy it back one second later (or earlier, according to which time standard you are using) at half price.

      --
      Sent from my ASR33 using ASCII
  15. Metric time by jfdavis668 · · Score: 1

    Oh, excellent. Not only are the trains now running on time, they’re running on metric time. Remember this moment, people, eighty past two on April 47th, it’s the dawn of an enlightened Springfield.

  16. We should do what GPS does by plover · · Score: 1

    Ignore it. How much does it impact humanity if the clock noon drifts a tiny bit from solar noon? We're looking at an impact of shifting noon by about a minute over the course of an average human's lifespan. The impact of ignoring it means that people who rely on sundials are left to solve the sync problem on their own, and that's a whole lot less of an impact than NTP.

    Other systems that synchronize with natural phenomena, such as automated irrigation systems or automated lighting systems, can be adjusted by their owners.

    If some purist insists that we have to fix it, let's agree to fix it once per century, and let the people 100 years from now figure out if it's important enough to them to worry about.

    --
    John
    1. Re:We should do what GPS does by heypete · · Score: 2

      I recently took a private tour of the time and frequency lab at METAS (the Swiss Federal Institute of Metrology) and got to observe their atomic clocks, ask the people there some questions, etc.

      The scientist in charge of the lab wishes everyone would use TAI for time distribution. TAI has no leap seconds and differs from GPS time by a constant 19 seconds. If TAI was used, computers would never have to worry about leap seconds internally and things would be greatly simplified.

      Computers don't care what time is used internally, and it's easy for computers to get a table of leap seconds and use that data to display UTC to users so the displayed time matches solar time.

    2. Re:We should do what GPS does by Layzej · · Score: 1

      We're looking at an impact of shifting noon by about a minute over the course of an average human's lifespan.

      Maybe not even that since leap seconds can be both inserted and removed as required depending on climatic and geological events. It could very well be a wash.

    3. Re:We should do what GPS does by mbone · · Score: 1

      Ignore it. How much does it impact humanity if the clock noon drifts a tiny bit from solar noon? We're looking at an impact of shifting noon by about a minute over the course of an average human's lifespan. The impact of ignoring it means that people who rely on sundials are left to solve the sync problem on their own, and that's a whole lot less of an impact than NTP.

      Other systems that synchronize with natural phenomena, such as automated irrigation systems or automated lighting systems, can be adjusted by their owners.

      If some purist insists that we have to fix it, let's agree to fix it once per century, and let the people 100 years from now figure out if it's important enough to them to worry about.

      GPS does not ignore it in the slightest. GPS is a big user of UT1 data and predicts, and has driven a lot of work in the Earth rotation field. However, what GPS does not do is use UTC as a very approximate version of UT1.

      People doing celestial navigation at sea do typically assume that UTC as a very approximate version of UT1, and that's why there are leap seconds at all (to keep the celestial navigation error to the kilometer level). As the use of celestial navigation declines, so does the need for leap seconds.

    4. Re:We should do what GPS does by mbone · · Score: 2

      I recently took a private tour of the time and frequency lab at METAS (the Swiss Federal Institute of Metrology) and got to observe their atomic clocks, ask the people there some questions, etc.

      The scientist in charge of the lab wishes everyone would use TAI for time distribution. TAI has no leap seconds and differs from GPS time by a constant 19 seconds.

      Yes, because the Air Force people setting up GPS time didn't understand why that was a fundamental difference between UTC and TAI (GPS - UTC was zero when the time scale was established).

    5. Re:We should do what GPS does by at10u8 · · Score: 1

      The designers of GPS system time did understand. GPS system time is *about* 19 seconds behind TAI, not exactly 19, and the difference varies by nanoseconds. Perhaps nanoseconds is unimportant to some, but for others nanoseconds is very important. That makes them not the same, so choosing a separate name and offset avoided any confusion that they were the same. Think of it like a trademark issue; there are many kinds of cola, but TAI is a name for the original cola, and only BIPM is authorized to make cola with the name TAI.

    6. Re:We should do what GPS does by mbone · · Score: 1

      I was there at the time, IMHO it was really clear they didn't understand what they were doing and in any case it was not done for any branding reasons.

      There are a number of different realizations of TAI/UTC, for example, UTC(USNO), UTC(NIST), etc. They are all different at the nanosecond level. The BIPM keeps a "paper clock" which (after the fact) provides estimates of offsets between the different realizations and the official TAI.

    7. Re:We should do what GPS does by plover · · Score: 1

      So let the sailors add the leap seconds back into their calculations. The rest of us shouldn't have to care about them.

      --
      John
  17. Re:Buggy software is buggy by Anonymous Coward · · Score: 1

    Name some languages that handle leap seconds properly.
    I don't believe for a second (pardon the pun) that you've actually done this research and testing yourself.

  18. just a second by frovingslosh · · Score: 5, Funny

    At least it is just a second. That sudden extra hour of daylight in the spring is really bad for my rose bushes.

    --
    I'm an American. I love this country and the freedoms that we used to have.
    1. Re:just a second by goombah99 · · Score: 2

      The cows hate it too.

      --
      Some drink at the fountain of knowledge. Others just gargle.
    2. Re:just a second by ceoyoyo · · Score: 2

      It's disturbing that you're modded informative.

    3. Re:just a second by jfdavis668 · · Score: 1

      What, you're not informed?

    4. Re:just a second by utahjazz · · Score: 1

      You need an extra hour of Whoosh! this spring.

    5. Re:just a second by ceoyoyo · · Score: 1

      No, I think I'm getting enough just being this close to the informative mods. And utahjazz.

  19. Massive stupidity by mbone · · Score: 2

    There is exactly one correct way to do this.

    2015-06-30T23:59:59
    2015-06-30T23:59:60
    2015-07-01T00:00:00

    David Mills approach is not correct, but will generally work and limits the pain to 1 second.

    Anything else is just stupid. We've only been doing this since 1972. You would think people would get with the program by now.

    1. Re:Massive stupidity by Anonymous Coward · · Score: 1

      But then a minute might have either 60 or 61 seconds in it...

    2. Re:Massive stupidity by NoOneInParticular · · Score: 2

      There's another exactly one correct way to do it. Lengthen the nanosecond to be in tune with the Earth's revolution around the sun instead of counting periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the cesium 133 atom.

    3. Re:Massive stupidity by Xylantiel · · Score: 1

      No, what he is saying is that the 23:59 minute ALREADY may have either 60 or 61 seconds. Thus the "get with the program".

    4. Re:Massive stupidity by arcade · · Score: 1

      David Mills approach is a hack around a broken standard, namely POSIX.1. It's a good hack.

      Your solution is obvious and correct, but isn't possible to implement while being POSIX compliant.

      We all suffer from a broken standard. It's not possible to be both posix compliant and doing this correctly.

      --
      "Rune Kristian Viken" - http://www.nwo.no - arca
    5. Re:Massive stupidity by arcade · · Score: 1

      Leapseconds aren't due to the time it takes to orbit around the sun, but due to the time it takes for the earth to spin around its own axis.

      The earths is spinning sliiiightly slower over time.

      --
      "Rune Kristian Viken" - http://www.nwo.no - arca
    6. Re:Massive stupidity by certsoft · · Score: 1

      Unfortunately some GPS receivers use a slightly different method, although it works out in the end.

      2015-06-30T23:59:59
      2015-06-30T23:59:59
      2015-07-01T00:00:00
      Unfortunately some GPS receivers use a slightly different method, although it works out in the end.

    7. Re:Massive stupidity by mbone · · Score: 1

      :)

    8. Re:Massive stupidity by mbone · · Score: 1

      The problem is, if you do that, you'll eventually have to do it again, and again, as the earth's rotation continues to slow in the long term. It kind of destroys the notion of the second as a fundamental physical unit.

      Before 1972, for a brief while there were changes in UTC rate, not just step functions in time, to keep UTC close to UT1 (or, at the time, UT2). It did not take long to realize that this was a massively bad idea and stop it.

  20. I wouldn't call it unexpected by Sowelu · · Score: 1

    Anyone who's worked with time zones even a little bit knows that catastrophic failures aren't "unexpected" at all.

  21. Ignore Time by Anonymous Coward · · Score: 1

    It doesn't exist.

    1. Re:Ignore Time by Anonymous Coward · · Score: 1

      Especially not lunch time.

    2. Re:Ignore Time by rubycodez · · Score: 1

      Only photons get to say that; or they would if their birth, existence and obliteration didn't happen in the same instant in their reference frame

  22. Wrong solution, wrong problem by mcelrath · · Score: 1

    The whole problem strikes me as one of human preferences, not technical requirements. There's absolutely no reason not to use our atomic clocks and just count number of seconds since some starting point. The desire to have the sun directly overhead at "noon" is a human one, divorced from any technical requirement. All of science, computing, networking, telecommunications, would be much happier if we didn't continually redefine time like this.

    So let watch manufacturers and clock-app manufacturers deal with this, when reporting time for human consumption. It shouldn't be a problem for NIST and government bodies. NIST should instead be reporting Earth's orbital parameters as time delta from noon, as they change over time, not conflating time itself with Earth's orbital parameters.

    This is the way GPS, Loran-C and TAI handle time, and it's the right thing to do.

    --
    1^2=1; (-1)^2=1; 1^2=(-1)^2; 1=-1; 1=0.
    1. Re:Wrong solution, wrong problem by mcelrath · · Score: 4, Informative

      Also this is an awesome graph, and illustrates that the Earth is a horrible clock: https://upload.wikimedia.org/w...

      --
      1^2=1; (-1)^2=1; 1^2=(-1)^2; 1=-1; 1=0.
    2. Re:Wrong solution, wrong problem by FrankSchwab · · Score: 1

      Exactly.

      File timestamps should be in linear time (GPS, TAI, whatever).

      What gets displayed to you as a human is in your local time - timezone + planetary adjustment - so it matches the time on the wallclock. Do you as a human really care about the LSB in the file time? For those rare times when you do, you'll use linear time.

      --
      And the worms ate into his brain.
    3. Re:Wrong solution, wrong problem by NoOneInParticular · · Score: 1

      On the other hand, if you plot periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the cesium 133 atom versus the Earth cycle around the sun, it will show that cesium 133 is a horrible clock. It's even worse, if you have two cesium 133 atoms that accelerate differently, they will go out of sync! We luckily only have one Earth, so it cannot go out of sync with itself.

  23. Re:Dice: Please restore the Read More link. Thanks by Art3x · · Score: 5, Insightful

    I understand the desire to change things, but putting some social media Share link in place of the Read More link goes against the kind of website Slashdot is.

    Please restore the original layout. Thanks.

    +1 - Mod parent up.

    +2. In a Slashdot comment, we must add links and formatting by typing HTML by hand. You would therefore think we know how to copy and paste a web address from Slashdot to Facebook, if that's what we really want to do. We don't need an icon to do it for us.

    If you're going to add icons, switch the places for Share and Comments. Put the Share link to the right of the heading. Put the Comments link at the bottom. To me it seems more logical that way, it puts the Comments link back where it was.

  24. Re:How Will The Naval Observatory Clock Handle Thi by turbidostato · · Score: 1

    "Aren't all the NTP servers subordinate to the Naval Observatory Clock anyway?"

    No.

  25. Re:Buggy software is buggy by mbone · · Score: 1

    But...it's not.

    Because you have different approaches to it. If the community could agree on how to address the (growing) difference in time as measured by Earthborn measures with solar/Earth/rotation measures, then it would be. But, there are legitimate and valid disagreements with how time should be kept.

    Really? UTC is defined by International Telecommunications Union Recommendation (ITU-R TF.460-6), and it includes leap seconds. Do you have an alternative Telecommunications Union you abide by?

  26. Re:Miss your flight? by Sarten-X · · Score: 1

    It's actually cheaper than trying to maintain only a loose synchronization. You just use prebuilt time equipment, which is almost always built for unnecessary precision, and have the service stop if the times are too far out of sync (indicating that a server stopped getting updates). If you have several servers in several sites, a single site losing its time service is not a big deal, as the service will fail over to the other sites. However, if none of your time clocks can handle the leap second, you'll lose all of your servers at the same time, as they all realize they aren't getting updates.

    It's a hazard of having a uniform environment. Unfortunately, uniform environments are also far more cost-efficient to manage.

    --
    You do not have a moral or legal right to do absolutely anything you want.
  27. Re:Buggy software is buggy by petermgreen · · Score: 4, Interesting

    Leap years and leap seconds are handled very differently.

    The rules for leap years are according to a forumula that has been fixed for hundreds of years. Computers typically handle them as part of their conversion from internal "time elapsed since epoch" data formats to "human" date formats and otherwise don't care much about them. Even the simplified formula of "leap year every 4 years"

    Leap seconds OTOH cannot be predicted in advance so you cannot realiablly convert "time elapsed since epoch including leap seconds" to "time elapsed since epoch excluding leap seconds" or "human datetime" for future datetimes and to do it for past datetimes requires an up to date list of leap seconds.

    Then there is the problem that "time elapsed since epoch excluding leap seconds" which is a common way to represent time (presumablly due to the difficulty in converting "time elapsed since the epoch including leap seconds" to "human datetime" simply cannot correctly represent the times arround a leap second.

    The testcase is also anything but simple, to test the code you have to inject fake leap seconds, but for a correct test leap seconds can only be injected at specific times (NTP for example increases it's update rate around possible leap seconds) so either you can only run the test at specific times or your entire test environment needs to run on "fake time". This is a big problem if your tests need to interact with a system outside the test environment in a way that depends on time within the test environment being in sync with time outside the test environment.

    --
    note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
  28. Blame posix by m.dillon · · Score: 1

    Blame posix for making all the goddamn pthread *_timedlock() calls take an absolute real time instead of a monotonic clock.

    In anycase, I'm not even going to bother doing anything fancy. I'll let the system suddenly be one second off and then correct itself over the next hour. I'm certainly not going to do something stupid like letting the seconds field increment to 60. Having the ntp base time even go through these corrections is already dumb enough. Base time should be some absolute measure and leap seconds should just be adjusted after the fact in a manner similar to timezones.

    -Matt

  29. 1s > 128ms, therefore slew by Jizzbug · · Score: 2

    NTP would typically slew a 1-second difference, so Google is not out-of-line to add the second at the beginning of the day and slew their systems over the course of the day. Google uses lots of vector clocks in their distributed systems, they may have calculated that slewing over the course of the day introduces fewer time differences between machines than counting the final second twice (due to drift, which is inevitable on any NTP slave, corrected by "frequency discipline" and error estimates).

    --

    -=/\- Jizzbug -/\=-
  30. Re:How Will The Naval Observatory Clock Handle Thi by mbone · · Score: 2

    That's not the problem.

    Leap seconds are inserted by pretending that there's a 61st second in a minute.

    Pretend, nothing. Those minutes do have a 61st second.

  31. beware the Digg effect by ei4anb · · Score: 2

    When you change a forum against the wishes of the users you risk the Digg effect. Please undo the "Share" change.

  32. Re:Buggy software is buggy by at10u8 · · Score: 3, Informative

    The ITU-R has outlined 4 methods for the future of UTC. Methods A1, A2, B, C1, C2, and D are from various delegations of the international assembly, and they are in serious disagreement with each other.

  33. Re:Dice: Please restore the Read More link. Thanks by GoodNewsJimDotCom · · Score: 4, Informative

    I thought Slashdot was dead. I thought they killed the comments until someone told me where to look.

  34. Re:Buggy software is buggy by petermgreen · · Score: 1

    Even the simplified formula of "leap year every 4 years"

    That should have said

    Even the simplified formula of "leap year every 4 years" works for 1901 to 2099 which is from before the introduction of computers to beyond what most system designers would consider to be a reasonable system life.

    --
    note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
  35. Re:Buggy software is buggy by 93+Escort+Wagon · · Score: 4, Insightful

    The ITU-R has outlined 4 methods for the future of UTC. Methods A1, A2, B, C1, C2, and D are from various delegations of the international assembly, and they are in serious disagreement with each other.

    That's silly. There's no reason for it. Let's just sit down and come up with a new standardized method that covers all of these use cases.

    --
    #DeleteChrome
  36. Re:Dice: Please restore the Read More link. Thanks by war4peace · · Score: 5, Insightful

    The way they changed the design is clickbait of sorts.
    People trained their muscle memory to click that area to load more of the story or comments. Now they click and yell in frustration.
    That's a really shitty way of luring people. Shame on you, Dice!

    --
    ...gis sdrawkcab (usually not responding to ACs; don't bother posting as AC)
  37. Re:Dice: Please restore the Read More link. Thanks by 93+Escort+Wagon · · Score: 2

    I understand the desire to change things, but putting some social media Share link in place of the Read More link goes against the kind of website Slashdot is.

    Not only that, but even though they've added a new numeric post count inside of a little speech bubble... if you click on that, you don't get taken to the comments! You still get taken to the top of the page, and have to scroll down to get to the comments.

    I realize Taco and the others are long gone, but doesn't anyone on the Slashdot staff even bother to look at the pages after a design change has been made?

    --
    #DeleteChrome
  38. Those who write fragile code should be banished by Anonymous Coward · · Score: 1

    Those who write fragile code should be banished. The fact that so much software can't deal with time changes is very telling. It shows how stupid most software developers actually are.

  39. I vote for Google by AndyKron · · Score: 1

    I like Google's idea better. I can't say why exactly, but it sounds cool.

    1. Re:I vote for Google by roc97007 · · Score: 1

      I like it too. There's something satisfying about preserving monotonically increasing time.

      --
      Oliver's law of assumed responsibility: If you're seen fixing it, you will be blamed for breaking it.
  40. Re:Buggy software is buggy by Killall+-9+Bash · · Score: 1

    This is a troll?!

    Is troll a synonym for insightful now?

    --
    "Prediction: within 10 years, Windows will be a Linux distribution." Me, 7-6-2016
  41. counting a second twice by roc97007 · · Score: 1

    My concern with allowing a second to happen twice is that time-scheduled events that just happen to coincide with that second might execute twice. Depending on the circumstances, the results could vary from unnoticeable to completely bizarre and damaging.

    --
    Oliver's law of assumed responsibility: If you're seen fixing it, you will be blamed for breaking it.
    1. Re:counting a second twice by Todd+Knarr · · Score: 1

      That's easy enough to deal with, and the schedulers involved should already deal with it. It's not like the difference between level-triggered and edge-triggered events is something new or novel, how do you think those same schedulers handle the twice-yearly DST transitions that involve adding or dropping an entire hour to/from the clock? Just as handling those transitions involves discarding the misconception that a day is always 24 hours long, dealing with leap seconds correctly involves discarding the idea that a minute is always 60 seconds long. In the process you'll also realize why Unix cron schedules at the start of an interval, not the end (events trigger at the start of an hour, day etc., not on the last second of the hour/day/whatever).

  42. Re:Buggy software is buggy by Killall+-9+Bash · · Score: 1

    Perhaps I'm blissfully ignorant, but I don't understand why almost any software would need to be time synchronized down to the second.

    Assuming there are applications where synchronized time is mission critical..... in those cases, relying on a 3rd party to provide time in a way you have no control over is PURE LUNACY.

    The example of an airline grinding to a halt over 1 second..... I guess you do need highly synchronized computer systems so that you can tell me with 14 decimal places of precision that my flight is 20 minutes late.... Who the fuck built that system and said "Let's just sync it with time.nist.gov, because the government never screws anything up!"...?!

    --
    "Prediction: within 10 years, Windows will be a Linux distribution." Me, 7-6-2016
  43. Re:Doesn't matter, so why do it? by AthanasiusKircher · · Score: 2, Interesting

    Why do we even bother with this? Why can't we just let noon move a second. Even after a hundred years it won't make any difference. Time zones on average vary in the suns position by a whole hour so a 1 sec variation of the solar zenith makes no difference. Anstronomers will still be able to find there stars.

    Agreed. This is all nonsense. Even NIST admits that it's basically for legacy astronomical equipment. But any astronomer who needs real precision needs to deal with fractional-second corrections all the time now anyway, and there are published tables that allow one to do this. (For the current correction to convert from UTC to UT1, see here, which gives values accurate to +/-5 milliseconds.)

    If we ever got maybe a minute or more off, I could possibly see the reason for a correction. But a second? Who cares? As I said, the very small number of people who actually need to use UT1 mostly do fractional-second conversions all the time anyway, as leap seconds aren't precise enough to keep up with the continuous variation.

  44. Re:Buggy software is buggy by RavenLrD20k · · Score: 4, Funny

    The ITU-R has outlined 5 methods for the future of UTC [acma.gov.au]. Methods A1, A2, B, C1, C2, D, and E are from various delegations of the international assembly, and they are in serious disagreement with each other.

  45. Re:I have a better idea by 0123456 · · Score: 1

    How about software developers stop relying on the notion of time being continuous? They could stop being lazy and actually implement algorithms that can handle discontinuous time.

    Yeah, because that'll work.

  46. Re:Dice: Please restore the Read More link. Thanks by Moridineas · · Score: 1

    Ditto. This is an awful change.

  47. Daily adjustments? by JoeMerchant · · Score: 1

    Instead of having a special case every few years, how about going ahead and making a millisecond of adjustment every day as needed? The adjustments could start with 0 or 1 milliseconds, and as the oceans slosh us ever slower, we could start making 1 or 2 millisecond adjustments every day at midnight.

    Would also keep the stars better aligned to the official time.

    1. Re:Daily adjustments? by at10u8 · · Score: 1

      Been there, did that, in the US from about 1957, the US and UK starting in 1960, and internationally from 1961 until 1972. The authorities in charge of the distribution of time utterly rejected that in favor of leap seconds. Then they went on a world tour getting agencies and governments to officially adopt UTC with leap seconds as the perfect time scale for all purposes.

    2. Re:Daily adjustments? by JoeMerchant · · Score: 1

      Awesome, now that we have another 50 years of technological advance, maybe it's time to revisit the issue...

    3. Re:Daily adjustments? by mbone · · Score: 1

      Awesome, now that we have another 50 years of technological advance, maybe it's time to revisit the issue...

      There may or may not be a vote on new proposals this year.

  48. Re:Buggy software is buggy by alexhs · · Score: 3, Informative

    The ITU-R has outlined 4 methods for the future of UTC

    Only method A1(*) proposes to redefine UTC. All other methods are keeping UTC just as it is.

    To sum up the methods :
    A1: No more leap seconds, UTC will drift from UT1.
    A2: Come up with a new name for "UTC without leap seconds" as the broadcast universal time, UTC becomes legacy.
    B: Keep UTC as it is, also broadcast a TAI-based reference time on an equal basis.
    C1: Keep UTC as it is, also broadcast a delta between UTC and TAI.
    C2: Same as C1, with more verbose recommendations.
    D: Keep UTC as it is.

    (*) With A2, UTC is not broadcasted anymore, so it has the same implications as A1, but mbone was going with the definition of UTC, so there's room for nitpicking :)

    --
    I have discovered a truly marvelous proof of killer sig, which this margin is too narrow to contain.
  49. Re:Doesn't matter, so why do it? by rubycodez · · Score: 1

    Not nonsense, time accuracy to milliseconds is indeed important in financial and database applications. More to the point, keeping systems in sync well enough for that is a long solved problem.

  50. Re:Dice: Please restore the Read More link. Thanks by caseih · · Score: 1

    Seconded! The share button is something I will never use and the lack of the read more link makes the web page a lot hard to use. Hope you'll do the right thing and stop screwing with things for change sake. Stop trying to bring the beta site back!

  51. Re:How Will The Naval Observatory Clock Handle Thi by Xylantiel · · Score: 2

    Exactly, just as February may have 28 or 29 days, the 23:59 minute may have 60 or 61 seconds. If your software time system was not built this way, it is technically wrong.

  52. Dice is deciding: cut-over or slew by davidwr · · Score: 1

    Should they change the social media link back to "read more" all at once or should they do it a little bit at a time so that, for a few hours on the day they do the change-over, you will get to read a little bit of the article then go to a cut-down version of a social media site.

    --
    Knowledge is how to play a game, intelligence is how to win, wisdom is knowing what game to play.
  53. Re:Buggy software is buggy by at10u8 · · Score: 1

    Take another look at Method D, which was just added in March: "No change to the Radio Regulations as the results of the studies are inconclusive." This is one group of delegations going on official record saying that all the effort expended by the ITU-R over the past 15 years has been worthless for making any decision to change the definition of UTC. That is serious disagreement.

  54. Re:How Will The Naval Observatory Clock Handle Thi by 0123456 · · Score: 1

    1. The code I wrote worked fine. But we have to interoperate with other people's code that doesn't.
    2. Any solution requiring programmers to write software properly is doomed to fail.
    3. No-one, at the last leap second, thought that Linux servers would crash when they printed out a message indicating that a leap second would soon happen.
    4. No-one, at the last leap second, thought their Java server software would go insane after a leap second because the internal timers stopped working.

    The world is full of code that will break when a leap second happens.

  55. Re:Buggy software is buggy by 0123456 · · Score: 1

    Perhaps I'm blissfully ignorant, but I don't understand why almost any software would need to be time synchronized down to the second.

    Yes, you are. Fart apps don't care about the time. The systems that let you sell your fart app to mobile users do.

    Assuming there are applications where synchronized time is mission critical..... in those cases, relying on a 3rd party to provide time in a way you have no control over is PURE LUNACY.

    Most of the world syncs to GPS, either directly using the time, or by using a frequency output that's synced to GPS. If you don't sync to GPS, you'll be out of sync with most of the world.

  56. The problem, and the IMHO correct solution. by arcade · · Score: 4, Interesting

    First off, the problem with leap seconds and unix is that unix time isn't UTC. Unix time is defined as seconds since epoch, ignoring leapseconds. Unix time is 'lossy' in that a the moment a leapsecond occurs can't be differentiated from the second before it. More information about that here: https://en.wikipedia.org/wiki/...

    The problem is that POSIX.1 is plain stupid when it comes to leapsecond.

    The correct solution to this problem would be as follows:
    1. Fix POSIX.1 to define unix time as TAI.
    2. Implement conversion routines i gettimeofday and other relevant functions.
    3. Use a handy store for leapseconds.

    Now, number 3 here is a bit tricky. Purists would probably want this in the TZ database or somesuch. This is well and good, but has the problem that the TZ files need to be packaged and updated on all the servers. If I remember correctly (please correct me if I'm wrong) Java is shipped with its own TZ files, and might also need them updated separately. Due to this, I think the most maintainable and portable way to do this across unixes would be to simply have an /etc/leapseconds file which lists the leapseconds since epoch. It does, however, depend on unix time being defined as TAI first.

    --
    "Rune Kristian Viken" - http://www.nwo.no - arca
    1. Re:The problem, and the IMHO correct solution. by at10u8 · · Score: 4, Informative

      Please look at this tzdist internet draft which is close to becoming an RFC. The tzdist protocol can communicate the list of leap seconds along with the list of time zones.

    2. Re:The problem, and the IMHO correct solution. by arcade · · Score: 1

      Thanks for the pointer! I've just had a skim through it.

      Initial thoughts: code is king. If it gets adopted, then that's what we have to deal with.

      Personal opinion; the standard is .. not the way I'd like it to be. Neither for TZ nor leapsecond information. I dislike the idea of stashing this in a SRV record in DNS. I dislike the lack of authority on where the information comes from. A laptop moving from one network to another could be in contact with systems that provide TZ data from different sources, but legitimate from the standard, instead of a single source of internet-wide truth.

      I furthermore dislike the complexity of the standard. The TZ data really doesn't need localization. This can be provided client side. Imagine a laptop talking to one TZ server not understanding the replies from a different one, due to localization [not entirely sure if this is correct, I might have skimmed too quickly].

      Then we have the 'version' string in the replies that is sloppily defined. Why have it so general, instead of a simple .. timestamp in seconds since epoch?

      There are lots of other nits and pieces I rather dislike - but also the entire idea that we should base it on HTTP and JSON. It also seems a bit too closely integrated with iCal from the get go.

      To sum it up: I'm not a fan of the standard. But as I didn't put my money where my mouth is and created my own when I started becoming interested in this problem some ~10 years ago, I'll go "mergh. ok then" if it's adopted in general.

      --
      "Rune Kristian Viken" - http://www.nwo.no - arca
    3. Re:The problem, and the IMHO correct solution. by arcade · · Score: 1

      Hello there cpt obvious. :-)

      The implementation we have at Google is obviously just 'yet another hack'. It's not lossy in the same way as unix time is lossy - but we're using unix time, but with a "hack" to avoid having a repeat-second.

      It's a nasty hack. It works, but it's nasty.

      --
      "Rune Kristian Viken" - http://www.nwo.no - arca
  57. Google is wrong. by msauve · · Score: 1

    The problem is systems which are poorly designed, and cannot properly handle leap seconds. That includes every POSIX system. Handling a leap second is fundamentally no different than handling a leap year. You have a minute with 61 seconds instead of 60, just like you have a month with 29 days instead of 28. But despite leap seconds existing since long before POSIX, the definers provided no means of enumerating a 61 second minute.

    Counting the same second twice or changing the length of a second, both are doing it wrong.

    --
    "National Security is the chief cause of national insecurity." - Celine's First Law
  58. Re:Doesn't matter, so why do it? by msauve · · Score: 1, Insightful

    What's nonsense is locking civil time to atomic time. There would be no need for leap seconds if civil time simply remained linked to astronomical time, as it was for millenia.

    Oh, and NIST - at least the person responsible for the leap second file they distribute (Judah Levine) - really has a very poor understanding of how leap seconds work. He's actually stated that "In the legal definition of UTC, a leap second is "forgotten" once it happens." That is, of course, completely incorrect. No wonder NIST wants to drop them, they don't understand them.

    --
    "National Security is the chief cause of national insecurity." - Celine's First Law
  59. Re:Buggy software is buggy by guruevi · · Score: 1

    Most, if not all of them. Unix time is leap second-ignorant and there are a number of other time sources that likewise handle leap seconds. If you do for some reason, require solar seconds or GPS time, there are other solutions for that. Most likely though, it's your platform that needs to handle the leap seconds and Linux, Mac, BSD, Solaris is more than capable of that, don't know about Windows or other esoteric systems though.

    The issue is in human date/time representations and/or bad programming. I've seen many times programmers parsing a MM-DD-YYYY HH:mm:ss string rather than a proper timestamp. I've also seen programmers implement timers even in lower-level languages like C by simply subtracting "$current time" - "$past time" or having a timestamp with a "unique" requirement. If you've ever worked on platforms that do not keep accurate track of time or have no hardware clock such as embedded devices, virtual servers etc, then you know that it's a bad idea.

    If you're relying on mm:ss to progress 'properly' during these time events, then you're in trouble. The article gives the example of timers as well which just gives me the heebie-jeebies.

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  60. Re:Buggy software is buggy by guruevi · · Score: 1

    You can never assume that time will not change due to external factors. That could be due to a sysadmin executing the 'ntpdate' command, leap years, leap seconds or even daylight savings.

    You're talking mainly about human representations of time though and although the conversion should be handled delicately, they should not be used for internal time representations (a major mistake I see very often is to handle/parse hh:mm:ss strings back and forth between a model and a controller).

    The testcase however is one that does need handling though if you do require such reliance on time. It may not be simple but yes, it is possible to fake the clock (ntpdsim). External (live/production) data within a test environment is likewise a 'bad thing', you most likely will not handle outliers if you assume the current external data includes improper data.

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  61. alternatives by denbesten · · Score: 2

    There have been 35 leap seconds in the past 42 years. In very round numbers, we could have....

    1 leap millisecond 3 times per day,
    1 leap second every year or so,
    1 leap minute every 50 years or so,
    1 leap hour every 3000 years or so.

    1. Re:alternatives by mbone · · Score: 1

      The divergence is (roughly) quadratic; those estimates (well, for leap "something > 1 second") are off.

  62. Re:Buggy software is buggy by guruevi · · Score: 1

    Pick one, make sure your systems run against it. If you always use NTP sourced data, you cannot assume your GPS sourced data (or local nuclear clock data) will give you the same results.

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  63. silliness by denbesten · · Score: 1

    Keep in mind that the silliness of "leap seconds" is about the same as the silliness of "timezones". Both are involved with keeping the sun above our heads as we eat lunch.

  64. Re:Buggy software is buggy by swilly · · Score: 1

    .NET doesn't handle leap seconds because Windows doesn't. Its NTP client will ignore seconds values greater than 59, and then fix the time during the next update. This means that Windows can knowingly be up to a second off from UTC time between the introduction of a leap second and its next NTP update. This is important to know if you attempt a fully synchronous distributed system that relies on NTP for synchronization.

  65. Re:Dice: Please restore the Read More link. Thanks by weilawei · · Score: 5, Interesting

    I'm willing to accept that layouts change and I'll need to look in a new place--but the new location is actually terrible usability. Here's why:

    First, I read the headline. Then, I read the summary. I'm moving down the page, and I'm scrolling the page, too. So, now I'm at the end of the summary, and the headline for any story with a long summary is now out of the window. Now, I need to scroll back up to see how many comments or to click to view those comments. Extra work, even if the summary isn't long.

    Fitts' Law applies here. They've made the target smaller in diameter, and placed it further away effectively. That means the difficulty of clicking to view comments is noticeably harder.

  66. Re:Buggy software is buggy by geminidomino · · Score: 1

    Chill out, dude. No one expected the UTC Inquisition.

  67. Re:Dice: Please restore the Read More link. Thanks by Livius · · Score: 1

    I thought Slashdot was dead.

    They haven't stopped trying.

  68. Concerns over trading? by LynnwoodRooster · · Score: 1

    Easy solution - add the extra second at 1 second after midnight on the last Sunday of June. No exchanges are open anywhere in the world at that time - so there's no advantage that 1 second gives anyone.

    --
    Browsing at +1 - no ACs, I ignore their posts. So refreshing!
  69. Real time systems by MichaelSmith · · Score: 1

    Its been raised as an issue with radar trackers where the radar and the tracker have their own time sources and they slew at different rates. The tracker gets upset and drops tracks where the timestamp from the radar seems to jump by a second.

  70. Re:Dice: Please restore the Read More link. Thanks by Stan92057 · · Score: 1

    Ya i seen that yesterday im like where the hell is the join conversation button. so i clicked the feedback button and sent in my unhappiness to them. I bet they are going to force us to the new Slashdot those of us who have been avoiding it with the nobeta tags

    --
    Jack of all trades,master of none
  71. Re:Doesn't matter, so why do it? by LaissezFaire · · Score: 1

    Agreed. In this case, the google answer is terrible because the answer for "what time is it?" is no longer the same. The other solutions stick a whole second at the time of departure, so the math is always consistent. With google's answer, 23:59:23 - 23:59:22 != 1 second. Ew.

  72. Re:Buggy software is buggy by Memnos · · Score: 1

    I think you mean "atomic clock", not "nuclear clock", since the standards rely on the electronic transition frequency of atoms in standardized environmental conditions (e.g., temperature.)

    --
    I don't trust atoms -- they make up stuff.
  73. Everybody run west by iliketrash · · Score: 1

    "...the slowly lengthening solar day"
    "Do you have a better idea of how to handle this?"

    I do. Have everyone run west. This will transfer the force of their feet to the earth, causing it to rotate faster. Don't stop running or the earth will slow down again, wreaking the havoc described in the article.

  74. Re: Doesn't matter, so why do it? by bondsbw · · Score: 1

    Keeping systems in sync is the important thing. Keeping them so accurate, to second precision, with the solar day is practically useless for almost every real need. I mean, if we are going to be so arbitrary, why not choose millisecond precision, or microsecond precision?

    No, what would be useful is coming up with a solid, well thought out, global plan for making this correction next century. Then implement that plan, moving around a minute or two, all at one time for all global systems in a predictable and deterministic way. None of this choosing to do it when and how you want.

    (Oh, and get rid of daylight saving time and time zones while we're at it... kthx)

    --
    All my liberal friends think I'm a conservative, all my conservative friends think I'm a liberal.
  75. Chicken Little, the sky is not falling by msobkow · · Score: 2

    Every single time a leap second comes up in the future, we have these panic-stricken articles predicting doom and gloom for some services.

    If you haven't figured out how to deal with leap seconds that have been an issue since the '70s, I say your service DESERVES to crash and burn, and you DESERVE to spend long and stressful hours dealing with the mess.

    Leap seconds aren't a surprise to ANYONE with a functioning brain cell.

    --
    I do not fail; I succeed at finding out what does not work.
  76. Re:How Will The Naval Observatory Clock Handle Thi by butlerm · · Score: 1

    > Pretend, nothing. Those minutes do have a 61st second.

    Civil minutes may or may not have any correspondence with dictionary minutes. In the measurement of elapsed time intervals with more than one second of accuracy, dictionary minutes rule.

  77. Re:Buggy software is buggy by khchung · · Score: 1

    Leap years and leap seconds are handled very differently.

    The rules for leap years are according to a forumula that has been fixed for hundreds of years. Computers typically handle them as part of their conversion from internal "time elapsed since epoch" data formats to "human" date formats and otherwise don't care much about them. Even the simplified formula of "leap year every 4 years"

    You must have missed the Y2K boom.

    Even after that, programmers STILL cannot handle leap years properly, and gave us a 1-day outage of the PS3-PSN login on 29 Feb 2012 when the PS3 tried to sync the time from PSN on login and don't understand the result.

    --
    Oliver.
  78. Re: Doesn't matter, so why do it? by Pinky's+Brain · · Score: 1

    People can't deal with leap seconds when they know they have to ... postponing it into one huge clusterfuck isn't going to improve matters.

  79. Re:Doesn't matter, so why do it? by goombah99 · · Score: 1

    Yes but that has absolutely nothing to do with my post.

    --
    Some drink at the fountain of knowledge. Others just gargle.
  80. Re:Buggy software is buggy by mbone · · Score: 1

    Take another look at Method D, which was just added in March: "No change to the Radio Regulations as the results of the studies are inconclusive." This is one group of delegations going on official record saying that all the effort expended by the ITU-R over the past 15 years has been worthless for making any decision to change the definition of UTC. That is serious disagreement.

    This is a disagreement about future possible standards There is no disagreement about the current standard, which is why software that does not implement the current fracking standard is buggy.

  81. Re:You forgot about Y2K by KGIII · · Score: 1

    Do you know why that did not happen?

    Well, okay, it did not happen because some of us (most?) store the date as mm/dd/yyyy (here in the US) and not mm/dd/yy. You can display it anyhow you want - you can even display it in binary. How you store it matters. mm/dd/yy is a bad idea - even if you will be long gone by the time the company crosses 3000.

    --
    "So long and thanks for all the fish."
  82. Re:Buggy software is buggy by KGIII · · Score: 1

    I thought the .NET NTP server was grabbed from the system default? If that is true - and you indicate it is not - then wouldn't changing to NIST NTP work? Also - can one not change (I have never had a reason to even look into this) .NET to NIST?

    --
    "So long and thanks for all the fish."
  83. too late to schedual vacation now... by l0n3s0m3phr34k · · Score: 1

    reading this gives me a bad feeling that my night might suck. My job is intimately involved with multiple airlines, real-time systems, mainframes, etc. So I'm sitting on top of a network that might actually be affected. I haven't heard a peep of this from my management either...I doubt they even realize this is going on or that it may impact us.

  84. Re: Buggy software is buggy by kimhanse · · Score: 1

    Another relatively common use case is version control systems. They rely, at least in party, on accurate time stamps to resolve check-out and -in conflicts. Especially if multiple developers are working across a WAN or in the cloud, those timestamps would be fairly important. And--I'm speculating outside my area of expertise-- wouldn't there be a serious security vulnerability with a time discrepancy on mission-critical systems? A way to insert malicious code in that gap?

    So, yah, this is probably very important.

    Do you have a single example of a version control system that uses time to handle conflicts? I have never seen a system doing that, they all just handle it by looking at which commit reached the server first.

  85. Re: Doesn't matter, so why do it? by bondsbw · · Score: 1

    Ok, so if more often is better, how about leap milliseconds? Adding a leap millisecond every day would almost precisely mimic the average rate of leap seconds... to the point of being off by less than one second every century. It would be regular enough to become a standard, so all devices that need such precision would be updated to take it into account.

    In any case, leap seconds are a bad implementation... they occur so often that they cause regular synchronization issues, and they don't occur often enough as to force those with a stake to come up with a standard solution.

    --
    All my liberal friends think I'm a conservative, all my conservative friends think I'm a liberal.
  86. Re:Doesn't matter, so why do it? by Anne+Thwacks · · Score: 1
    It won't matter when you get scammed by the market traders who use the discrepancy to steal your entire pension fund/house/car or anything else tied to "the system". Yes, planes may crash becaose of a 1 second error in interpreting GPS signals, and possibly even ships run aground.

    I care about these things. It seems like some other people do too.

    The solution is, of course, "international agreement" on how to handle the issue. Does not matter which approach, so long as everyone agrees on it. Good luck with that one.

    --
    Sent from my ASR33 using ASCII
  87. Re:Timezone question by Anne+Thwacks · · Score: 1

    Unfortunately. 90% of the world uses an unreasonable system: "Windows". and 1% is out to exploit this f@$# up.

    --
    Sent from my ASR33 using ASCII
  88. Re: Doesn't matter, so why do it? by OolimPhon · · Score: 1

    People can't deal with leap seconds when they know they have to ... postponing it into one huge clusterfuck isn't going to improve matters.

    Well, I don't know... we manage with a whole leap day every four years or so.

  89. TAI by fredan · · Score: 1

    so how do I run my linux system with TAI instead of UTC?

  90. Re:Buggy software is buggy by ixuzus · · Score: 1

    I get a strong urge to slap programmers who use the simplified evenly divisible by four rule to calculate leap years. It just so happens that 2000 was the 1 in 400 XX00 year that is a leap year so it works a couple of decades either way. The problems start when your code is applied to a longer or historical data set. This can happen when you don't have full knowledge of how your code is going to be used or just when you fall into your old bad habit of ignoring the function for your simple and wrong divisible by four rule and don't even see the problem coming, Symptoms include days of the week out of sync, computations involving date/time functions and the hand rolled divisible by four rule start to give odd results, your monthly and yearly averages are out, that very pretty graph dives from a narrow range in the thousands to zero at the end of February 1900, throwing the whole graph out of scale, and you get to find out how graciously or otherwise your system handles being asked about a date that doesn't exist, or if you're really, really lucky like I was - all of the above. I don't know who wrote the wretched code but I had to fix it. Most languages have a decent set of date/time functions - use them unless you have a really good reason not to.

  91. Re:Doesn't matter, so why do it? by goombah99 · · Score: 1

    Right so, as I said. Don't change the clocks at all. so no problem. THere is no need to change the clocks. SO the sun is off by 1 sec in the sky. this does not affect time on earth.

    --
    Some drink at the fountain of knowledge. Others just gargle.
  92. Re:Doesn't matter, so why do it? by AthanasiusKircher · · Score: 2

    What's nonsense is locking civil time to atomic time. There would be no need for leap seconds if civil time simply remained linked to astronomical time, as it was for millenia.

    Sorry, but what the heck are you talking about? Your "solution" makes no sense given the need for accurate timekeeping today. Astronomical time varies significantly with the earth's rotation all the time by various amounts of milliseconds (see here for an illustration of that variance since modern UTC standards were adopted).

    The "length of a day" is simply nowhere near precise enough for modern applications. It worked to lock civil time to astronomical time when an error of a few milliseconds here and there wouldn't make a difference -- you could just reset all your clocks. But now much of our timekeeping software dealing with civil time works on machines where a few milliseconds here and there will screw things up all over the place.

    Are you at all aware of the mess things were before the modern UTC standards were adopted? They tried to make corrections on an order of milliseconds on a regular basis, and it was annoying as all hell. That's why they proposed only altering the standard clocks when the collective error accumulated to closer to a second -- the shift could then easily take place.

    What exactly do you think you're proposing here? That seconds will just be arbitrary lengths for civil time, varying on a daily or weekly basis to track the earth's variance in rotation? Or we keep the second constant, but that we make daily or weekly corrections somehow? Or what?

    Modern technology needs civil time to be consistent. And it needs to be precise because there are far to many machines which depend on it not varying by random little increments all the time. There are various ways of solving this problem, but just waving your hands and getting out your sundial to mark noon every day (as they did for millennia) is simply not possible in the modern world.

  93. Re:Doesn't matter, so why do it? by msauve · · Score: 1

    People who need sub-second accurate time use TAI. Civil needs would be met just fine by a return to GMT, instead of UTC.

    --
    "National Security is the chief cause of national insecurity." - Celine's First Law
  94. Re:Doesn't matter, so why do it? by rew · · Score: 1

    The thing that people-who-don't-know-better are suggesting is that the second will be the same all the time.

    They think that nothing bad will come from "thirty years from now, the sun is in the south at 11:59:30" (assuming an average of 1 leap-second per year).

    (I can't think of anything bad that would happen... but I know my limitations. It's probably annoying as hell to /some/ fields of research or something....)

  95. Confusion of terms. by rew · · Score: 1

    The article claims that NTP is the cause of the leap second. NTP is just a protocol that handles keeping computer clocks in sync with each other and with the official time (UTC, IIRC).

    If NTP handles leap seconds by increasing update frequency and then coming to the conclusion: "Whoa! my offset just went from 0.3 ms to 1000.25 ms, lets step the clock a second once we're sure this was not a fluke measurement". then that's a bad way of handling it in my opinion. (also suddenly speeding up does not provide a smooth-enough transition).

    One of the things that is bad about this is that when normal operation can handle (the bandwidth of) most hosts updating every 1024 seconds, and a few hosts (just rebooted, just installed, sync lost, whatever), now all of a sudden a synchronized (pun intended!) attack will take place where many many hosts will increase their update frequency by several order-2 magnitudes.

    For google, they internally have needs for synchronized clocks. Why I don't know, and I don't care. They have decided to handle the leap second in a more controlled way. It's actually not that hard. Just make sure that everything syncs off one level-0 server, and during the 20 hour period leading up to the leap second, add a variable number of microseconds to the exported time.

  96. Re: Doesn't matter, so why do it? by rubycodez · · Score: 1

    nothing arbitrary about it, compliance auditing for various standards exists already. you are complaining about a solved problem and a standard way of keeping time.

  97. Re: Doesn't matter, so why do it? by bondsbw · · Score: 1

    I'm sorry, I don't understand what any of that has to do with synchronization with solar time (which is the point of leap seconds). You'll need to provide more info.

    --
    All my liberal friends think I'm a conservative, all my conservative friends think I'm a liberal.
  98. Now I understand something on the LHC 2015 Schedul by luehringf · · Score: 1

    For several months I have been checking on the on the official LHC schedule:

    https://espace.cern.ch/be-dep/...

    and had been wondering about the notation "leap second" on the Wednesday of week 27 of 2015. This posting now makes me understand what is going on. I can imagine lots of consequences for the both the machine (think of how far in the lab frame a 7.5 TeV proton goes in 1 s) and the enormous (at least enormous if you aren't Amazon, Apple, Google, or Microsoft) pile of HTC servers on 6 continents we use to reduce the data into Nobel prizes (hopefully prizes plural...).

    Fred

  99. Re:You forgot about Y2K by dave420 · · Score: 1

    You don't remember it because it was one of the largest mobilisations and tasking of programmers the world has ever seen. If nothing was done, there would have been massive problems throughout every computerised industry, as all kinds of bugs were identified and fixed. I was there - were you?