Slashdot Mirror


Extra Leap Second To Be Added To Clocks On June 30

hcs_$reboot writes: On June 30 this year, the day will last a tad longer — one second longer, to be precise — as a leap second is to be added to clocks worldwide. The time UTC will go from 23:59:59 to 23:59:60 in order to cope with Earth's rotation slowing down a bit. So, what do you intend to do during that extra second added to that day? Well, you may want to fix your systems. The last time a leap second was added, in 2012, a number of websites, Java and even Linux experienced some troubles. Leap seconds can be disruptive to precision systems used for navigation and communication. Is there a better way of dealing with the need for leap seconds?

289 comments

  1. Leap hour by yet+another+SanTiago · · Score: 5, Funny

    There is a better way. Just wait several thousand years and then add one leap hour.

    1. Re:Leap hour by NotInHere · · Score: 1

      or several million years, and add a second every day!

    2. Re:Leap hour by rossdee · · Score: 1

      Just wait thousands of years and then not put the clocks forward in march

    3. Re:Leap hour by yet+another+SanTiago · · Score: 4, Insightful

      Well, i hope DST would be abandoned sooner.

    4. Re:Leap hour by Macdude · · Score: 1

      An even better way, wait several thousand years and the sun will come up at 7 am instead of 6 am.

      --
      "Grab them by the pussy" -- President of the United States of America
    5. Re:Leap hour by Anonymous Coward · · Score: 0

      142,892 years if the current rate of 26 seconds in the last 43 years holds true.
      I think, considering the issues it causes, we can cope with a 47 second difference in how long a day is over the average human lifespan, especially when we so go around adding and subtracting hours willy-nilly because of reasons which are no longer valid in the 21st century...or the mid to late 20th century for that matter.

    6. Re:Leap hour by Anonymous Coward · · Score: 0

      Wouldn't it be better to just let the system time go on as usual and subtract a second from the base offset?
      The timestamps will continue to be unique and increased every second but a second while the calculated date will have a second added since it starts from the last second in 1969 instead of the first in 1970.
      OK, it will be very impractical to update the code in embedded devices to handle this. On the other hand most of them shouldn't be sensitive to being a second off and hopefully those who are can be updated remotely.

    7. Re: Leap hour by jaa101 · · Score: 2

      There's already "Ephemeris Time" (ET) that doesn't have leap seconds. It's now exactly 26 seconds different from UTC. Go ahead and use that for system time if you like.

    8. Re:Leap hour by antdude · · Score: 1

      Not until we are back on DST and then we can dump it. :P

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    9. Re:Leap hour by davester666 · · Score: 1

      No. Large rocket engines mounted horizontally, fixed to the Earth, running 24/7 until we get the rotation back up so we don't have to keep adding these stupid seconds.

      --
      Sleep your way to a whiter smile...date a dentist!
    10. Re:Leap hour by grantspassalan · · Score: 1

      According to this link referenced in the article,

      http://www.telegraph.co.uk/new...

      “From 1972 to 1979, at least one second was added every year. Leap seconds were added six times throughout the 1980s. But there will only have been four leap seconds added since 1999.”

      This means that something very fishy is going on because this can add up to a very large error over time. In only seven years from 1972 to 1979 seven seconds were added! This means that at this rate of change, 13,797 seconds would have to be added to the day at the beginning of year 1. That comes to 3.83 hours in time of Christ! I cannot envision that the Roman’s day was almost 4 hours longer than ours! I suspect that the Earth’s rotation does not change by anywhere near that much if at all. Atomic clocks are extremely accurate short-term, but it seems from this data that their long term accuracy leaves a lot to be desired.

      --
      A sufficiently advanced simulation is indistinguishable from reality.
    11. Re:Leap hour by grantspassalan · · Score: 1

      From 1972 to 1979 they added one second to every year. At that rate, and 1 million years that would amount to 1 million seconds. That is total silliness. It would mean that 1 million years ago it took 11 ½ of our days for the earth to turn on its axis once! It seems that the atomic clock is totally an accurate long-term.

      --
      A sufficiently advanced simulation is indistinguishable from reality.
    12. Re:Leap hour by mwvdlee · · Score: 1

      Leap time is due to the time it takes for the earth to rotate around the sun, not the time it takes for the earth to spin around it's own axis.

      The earth doesn't rotate around the sun at a completely predictable speed (=something fishy), which is why leap seconds cannot be announced a great deal ahead of time (or extrapolated into the past).

      Also, if you WERE to extrapolate at one second every year, that's about 2,000 seconds to year 1, not 13,797. Besides, I have no problem envisioning days that might be a few hours longer or shorter than ours. The average human would not even notice it.

      It should also be noted that they started adding leap seconds in 1972. The fact that from 1972 to 1979 there were so many was mainly because they were trying to catch up without introducing too many leap seconds at once. In fact they even added two leap seconds in first year!

      Wikipedia (http://en.wikipedia.org/wiki/Leap_second#Slowing_rotation_of_the_Earth) explains this better than I did.

      Atomic clocks are extremely acurate long term, they just don't measure the "wobbly" time it takes for the earth to rotate around the sun.

      --
      Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
    13. Re:Leap hour by Neil+Boekend · · Score: 1
      --
      Well, I might have a way, but it only works on a semi spherical planet in a vacuum.
    14. Re: Leap hour by tricorn · · Score: 1

      Exactly. The system clock should be uniform and continuous down to the resolution of the system/hardware. All conversions to/from wall time (including time zones, DST, and leap seconds) should be done separately. The tz database/library is already capable of supporting that mode.

      I think it was one of the biggest mistakes in time processing to have NTP adjust the system clock on a leap second. Have NTP include the current offset, even have something that automatically updates the leap second history file when NTP indicates a pending leap second (or is showing a different offset from the current database, which would indicate that a database update is needed, say for a system that's been turned off or disconnected for a long time - not perfect, but close).

      This could be phased in in several ways, perhaps just changing it and overriding the few programs that would break (perhaps with a per-process flag to modify the kernel calls to get the time, which the tz library could take into account).

  2. Do the impossible by Anonymous Coward · · Score: 0

    and speed up the rotation of the world by 1 second.

    1. Re:Do the impossible by bigwheel · · Score: 5, Funny

      All we need to do is have everyone in the world face west and run.

    2. Re:Do the impossible by Anonymous Coward · · Score: 0

      Its not impossible

      We could do it with current technology even

      We just need to divert a large enough asteroid to hit the earth (in the same direction as it is rotating.

      Of course that will wipe out 90% of all life on the planet, but at least the clocks would be right.

    3. Re:Do the impossible by TheCarp · · Score: 1

      Hit it? why? The earth is already being slowed down by tidal interactions with the moon. we just need to slow the moon down until it drops under geosynchronous orbit, then its tidal bulge will move faster than our rotation and rotational energy will transfer from the moons new orbit to earth's rotation.

      There are a couple of minor downsides....like massive increases in the amplitude of the tidal bulge, but moon missions will require a lot less delta v...... of course, it also means the moons orbit will progressively shrink.

      Maybe put it in geosync and just try to keep the day length where it is?

      --
      "I opened my eyes, and everything went dark again"
    4. Re:Do the impossible by datavirtue · · Score: 1

      Just divert it to pass at the proper angle pulling the earth's rotation faster...no need to hit.

      --
      I object to power without constructive purpose. --Spock
    5. Re:Do the impossible by Anonymous Coward · · Score: 0

      All we need to do is have everyone in the world face west and run.

      NICE! I guess we should run IN PLACE; thus pushing the world to spin a tad faster to give that second back.
      Otherwise, when everyone stops (especially if folks stop suddenly), we might end up pushing the rotation quicker again!

      Actually, as it is now, there's not enough time in the day as it is, so adding a second is a step in the right direction! ;-)

  3. Better way by itzly · · Score: 4, Interesting

    Of course, there's a better way. Just ignore the small error until it adds up to an hour, and then skip a DST transition.

    1. Re:Better way by gstoddart · · Score: 4, Informative

      And then over time the astronomical meaning of how we keep time goes astray.

      AM and PM mean "anti-meridian" and "post-meridian", and at noon on the day of the summer solstice, the sun should sit on the celestial meridian.

      I'm pretty sure if we did it your way, eventually the meridian (which is how we derived both navigation and time keeping) would move around, and eventually noon would be in the middle of the night.

      This stuff isn't arbitrary, it's actually based in something.

      The whole point of the leap second (etc) is to keep those things lined up. Otherwise there is no way we could keep track of things like sunrise and sunset, or when you might see a specific star.

      --
      Lost at C:>. Found at C.
    2. Re:Better way by Archangel+Michael · · Score: 1

      Explain the, how DST works in relation to "noon" and "midnight". AM and PM are more like guidelines than actual code.

      --
      Agent K: A *person* is smart. People are dumb, stupid, panicky animals, and you know it.
    3. Re:Better way by CrimsonAvenger · · Score: 2

      Wait a century or so, do a Leap Minute. We won't be bothered by the silly thing if they only happen once in a lifetime, if that often.

      --

      "I do not agree with what you say, but I will defend to the death your right to say it"
    4. Re:Better way by itzly · · Score: 1
      You must have missed the part where I said to correct the error when it has grown to an hour.

      at noon on the day of the summer solstice, the sun should sit on the celestial meridian.

      Many people around the world live in a time zone that's already an hour off. What's a few more seconds/minutes ? All of China has a single time zone, and they still manage to survive.

      Otherwise there is no way we could keep track of things like sunrise and sunset, or when you might see a specific star

      You don't think we could simply adjust the calculations for sunrise and sunset ?

    5. Re:Better way by riverat1 · · Score: 2

      UTC doesn't do daylight savings time.

    6. Re:Better way by itzly · · Score: 0

      No, but you can adjust UTC by an hour to coincide with a DST event, so to minimize the effect on people's lives.

    7. Re:Better way by jones_supa · · Score: 2

      DST is a clear one hour offset. We know precisely what the time without the DST addition is at any given moment. Letting the time slide second-by-second until we reach the extra hour would be quite a different thing.

    8. Re:Better way by smooth+wombat · · Score: 2

      AM and PM mean "anti-meridian" and "post-meridian", and at noon on the day of the summer solstice, the sun should sit on the celestial meridian.

      I'm glad you phrased it that way. Countless times I have seen people, signs and web sites refer to times such as 12 PM or 12 AM.

      There are no such times. It's either 12 noon or 12 midnight.

      --
      We will bankrupt ourselves in the vain search for absolute security. -- Dwight D. Eisenhower
    9. Re:Better way by r_jensen11 · · Score: 2

      And then over time the astronomical meaning of how we keep time goes astray.

      By that logic, the astronomical meaning of how we keep time went astray when we implemented time zones.

    10. Re:Better way by TWX · · Score: 4, Informative

      Explain the, how DST works in relation to "noon" and "midnight". AM and PM are more like guidelines than actual code.

      I think your use of DST was wrong, I think you meant timezones.

      Timezones break local noon/midnight by offsetting the location to an approximate less than a half-hour away, but since timezones are calcuated based on the arbitrarily-picked Greenwich, UK, really the entire planet is running on Greenwich time, with a particular significant digit adjusted to reflect distance, to approximate the natural time of the area.

      --
      Do not look into laser with remaining eye.
    11. Re:Better way by BarbaraHudson · · Score: 1

      It's no big deal to add a leap second every once in a while. Most of our devices that have a time component synchronize time from a centralized source (the cell network, the internet) so you won't even notice. For the other stuff, like my microwave and coffee maker and stove, if it goes out of sync by a second every few years I won't notice because power failures are more often than that, and time only goes to hh:mm anyway.

      --
      "Transparent" is a shit show that trades on every stereotype going. A man in drag is NOT a transsexual.
    12. Re:Better way by TheCarp · · Score: 5, Informative

      > AM and PM mean "anti-meridian" and "post-meridian",

      Total nitpick, its ante not anti.

      ante- prefix meaning before
      anti - prefix meaning against

      You see it in words like "antediluvian" (before the flood).

      --
      "I opened my eyes, and everything went dark again"
    13. Re:Better way by Wesley+Felter · · Score: 1

      Like how people weren't bothered by Y2K bugs? Let's not repeat that every century.

    14. Re:Better way by Anonymous Coward · · Score: 0

      We should always skip all DST transitions.

    15. Re:Better way by PseudoCoder · · Score: 1

      Of course, there's a better way. Just ignore the small error until it adds up to an hour, and then skip a DST transition.

      That will lead to more and bigger instances of being affected by the error. The error is always there to a degree, no? But you are only affected by the error when you read the clock and produce a "bad calculation" based on that reading.

      Not sure what the answer would be software-wise, but maybe more use of elapsed time routines (vs absolute time) that would account for the corrected clock.

      --
      "Now, I doubt any of you would prefer a rolled up newspaper as a weapon against a dictator or a criminal intruder."
    16. Re:Better way by Roger+W+Moore · · Score: 1

      AM and PM mean "anti-meridian" and "post-meridian", and at noon on the day of the summer solstice, the sun should sit on the celestial meridian.

      This is only ever true if you happen to live precisely on the meridian for your time zone. Given that almost nobody does and that timezones often are determined more by politics than science most people on the planet are already living out of sync with the strict astronomical definition of time by many tens of minutes if not hours.

      If we can handle timezones which are an hour wide then we can handle being an hour off between astronomical time and legal time and so if should be fine to buffer the changes until they make up an hour which will take ~7,200 years if the rate is one second every ~2 years (a period longer than any human calendar has ever remained in use for).

    17. Re:Better way by Anonymous Coward · · Score: 3, Informative

      And countless times I see people assume that traditional latin and/or greek roots of terms must be taken literally and dictate how they are to be used in modern times...

      Numerous national standards define midnight as 12:00 AM or 0:00 AM, and noon as 12:00 PM. But many also recommend the written usage of "12 noon" and "12 midnight" to make things clear to those that don't understand AM and PM.

    18. Re:Better way by angel'o'sphere · · Score: 1

      No, it does not.
      You seem not to understand time and time zones ;) no problem, it takes time to do that.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    19. Re:Better way by nedlohs · · Score: 1

      Sane people don't care about such ridiculous restrictions.

      If it makes you feel better you can just read 12 PM and 12:00:00.0000000001 PM if you like - which should also show the idiocy of the restriction in the first place.

    20. Re:Better way by Anonymous Coward · · Score: 0

      Of course, there's a better way. Just ignore the small error until it adds up to an hour, and then skip a DST transition.

      The purpose of the leap second is to accurately know the position of the earth relative to the sun. Sort of a big deal when you are dealing with satellite systems and LEO navigation.

    21. Re:Better way by Livius · · Score: 1

      An hour is 1/24 of a day, so maybe that's a little too much, but I doubt any human activity would be affected if we saved up the discrepancies until it was a half or a full minute.

    22. Re:Better way by Gavagai80 · · Score: 1

      We will. I've noticed a lot of people are already back to entering years in two digits.

      --
      This space intentionally left blank
    23. Re:Better way by Livius · · Score: 1

      Noon versus midnight is nowhere near as troublesome as ensuring you're clear on which day midnight belongs to. A lot of things get scheduled for 12:01 am or 11:59:59 pm for that reason.

    24. Re:Better way by Gavagai80 · · Score: 1

      Your astronomical noon is not at actual noon, nor is midnight the middle of your night. In fact, the time of astronomical noon changes by a few minutes as you drive even short distances east or west. It would take centuries of of leap seconds to diverge from astronomical noon as much as driving to the next city does.

      --
      This space intentionally left blank
    25. Re:Better way by david_thornley · · Score: 1

      Hey, I was paid in part to deal with Y2K bugs. Let's not complain.

      --
      "When you have eliminated the unacceptable, whatever is left, however improbable, must be the truthiness" - Holmes
    26. Re:Better way by xaxa · · Score: 4, Informative

      arbitrarily-picked Greenwich, UK,

      Greenwich wasn't arbitrarily picked. The only options were Paris, Berlin, London and Washington DC -- they had the necessary observatories. London was already in widest common use, and the anti-meridian falls in a convenient place (not crossing anywhere important).

    27. Re:Better way by Archangel+Michael · · Score: 1

      No, I meant DST, which causes fluctuations in time by one hour twice a year based on political whim and originally proposed as a joke/insult to France by Benjamin Franklin.

      Which incidentally proves two things: You should never joke with politicians, they may think it is a good idea and implement it. And politicians are stupid.

      --
      Agent K: A *person* is smart. People are dumb, stupid, panicky animals, and you know it.
    28. Re:Better way by Anonymous Coward · · Score: 0

      Why're ya avoiding this Barb http://slashdot.org/comments.p... ? You troll apk http://tech.slashdot.org/comme... n' you can't back it up? Yes.

    29. Re:Better way by msauve · · Score: 2

      Standard Time still had local time coupled with sol, to an approximation of about 1/2 hour (stretched for political boundaries and other practical reasons, etc.) One could measure the offset between Standard Time and their local solar time, and use that to determine Standard Time independently at any point in the future.

      UTC is likewise closely coupled with solar time (UT1) within 0.9 seconds. If you know the offset of a location, you can determine UTC at that location within 0.9 seconds independently, using only astronomical means.

      Decoupling UTC from sol breaks the millenia old convention that civil time is based on sol, for the sake of some lazy programmers.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    30. Re: Better way by Anonymous Coward · · Score: 0

      s/anti/ante/

    31. Re: Better way by Anonymous Coward · · Score: 0

      Also s/meridian/meridiem/g

    32. Re:Better way by Anonymous Coward · · Score: 0

      The whole point of the leap second (etc) is to keep those things lined up. Otherwise there is no way we could keep track of things like sunrise and sunset, or when you might see a specific star.

      Within a timezone, sunrise/sunset already varies by +/- 30 minutes, so a handful of seconds won't make any noticeable difference. We could ignore leap-seconds for the next thousand years, and barely notice the drift. Your extreme scenario - with noon in the middle of the night - would take tens of thousands of years to occur.

    33. Re:Better way by angel'o'sphere · · Score: 1

      You are mixing up local noon ... with everything else.

      Who cares about driving? Point is, if your clock is wrong you add to the minutes you are concerned about another second. And a minute only has 60 seconds. So you are off by another second if you don't factor in leap seconds.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    34. Re:Better way by Anonymous Coward · · Score: 0

      Most of the major countries use UTC+Daylight savings+timezone.
      The celestial event they track depend on timezones at the minimum. Noon is the peak sun only if there are infinite timezones around the globe.

      The error from one timezone spanning 1 hour = + or - 30 minutes
      The error from one DST transition = 1 hour

      So in the context of this, they're causing large scale computer problems for an insignificant things.

      I assume they are trying to justify their budget.

    35. Re:Better way by GNious · · Score: 1

      AM and PM mean "anti-meridian" and "post-meridian", and at noon on the day of the summer solstice, the sun should sit on the celestial meridian.

      Easier to remember as After Midnight and Pefore Midnight :)

    36. Re:Better way by Zappy · · Score: 1

      "anti-meridian"

      ante-meridian, anti-meridian would be midnight I guess :-)

    37. Re:Better way by Neil+Boekend · · Score: 1

      DST aligns it better. Noon shifts through the year because the Earth orbit is not completely round.
      What we see as a day is the sum of two effects:
      1. The rotation of the earth around it's axis. This takes about 23 hours and 56 minutes. Understand it as "relative to the stars in the background". It is called sidereal time.
      2. Our orbit around the sun. This adds 4 minutes to each day. If the earth would not rotate relative to the stars in the background this would still cause one "day" per year.
      Total is approximately 24 hours.

      The rotation around our axis is relatively constant. Sufficiently constant for this.
      The orbital speed is not constant. The orbit is not round, there is a point where the planet is closer to the sun. The closer the earth is to the sun the faster it goes.
      The faster the earth goes the more degrees per hour the sun movement by the day-caused-by-our-orbit is.
      This causes noon to shift approximately 1 hour during the day.
      DST corrects for that.

      Having said that: we should kill DST. The lost productivity it causes is enough reason.

      On mercury this effect is so strong that the sun can be seen going backwards during a part of the day(if there was an observer there).

      --
      Well, I might have a way, but it only works on a semi spherical planet in a vacuum.
    38. Re:Better way by smooth+wombat · · Score: 1

      Sane people don't care about such ridiculous restrictions.

      Tell that to the guy who fought a parking ticket because the sign used the term "12 PM". He went before the judge, explained there is no such thing as 12 PM, only 12 noon, and won his case.

      Considering the anal-retentiveness of a large portion of people on here, one would think this wouldn't even be an issue. It's quite clear, AM is anti meridiem and PM is post meridiem. What time is 12 PM since it is neither post nor anti?

      --
      We will bankrupt ourselves in the vain search for absolute security. -- Dwight D. Eisenhower
    39. Re:Better way by nedlohs · · Score: 1

      Referencing the law as an example of "sanity" does not help your case. Yes laws are not sane, we all know that.

      post since 12:01-12:59 are all PM, making noon also be 12:00 PM is unambiguous and simple and everyone knows what it means. No one cares what AM and PM actually stands for, as evidenced by you pretending to care and getting it wrong anyway.

    40. Re:Better way by Anonymous Coward · · Score: 0

      No. All astronomical events are done using Universal Coordinated Time, i.e. Greenwich Mean Time. This is why all timezones are + or - from GMT. Because it is the base standard. If you look at astronomical reference guides, every time is given in UT and astronomers just convert to GMT in their heads from their local timezone. Observatories have clocks up that show local and UT as well.

    41. Re:Better way by tricorn · · Score: 1

      That's a terrible solution. It simply guarantees that there will be even more significant problems when you do trigger that Leap Minute. Having this occur every year or two means you have an incentive to handle it correctly. Having it occur once every 60-100 years means that no one will bother handling I correctly, or will implement handling it incorrectly.

      Think of a critical system that hangs for a minute rather than a second. The results would be much more damaging.

      That's like fixing a memory leak by adding more memory to your system. You're just pushing problems down the line and making them more significant.

    42. Re:Better way by neonsignal · · Score: 1

      for the sake of some lazy programmers

      This is a failure to understand why there is a problem. How can one program in a correction which is only decided six months in advance? On an embedded platform which may have a lifetime of ten years or more.

    43. Re:Better way by RockDoctor · · Score: 1

      We will. I've noticed a lot of people are already back to entering years in two digits.

      In the run up to Y2K I switched to using ISO8601 date format and haven't budged. YYYY-MM-DD HH:MM:SS.ssss+TZ.... If the client then insists on using something parochial, I'll explain my reasons (date, alphabetical and numeric forms sorting into the same order) and then after they've expained why they want something parochial, I'll implement the changes they want. But they have to justify moving away from a reasonable proposition.

      We were lucky that we managed to hide our Y2K bug from our customers (they came in from some 3rd-party software) by retiring the DOS version of our main product and completing the release of the windows V1 line, despite all it's bugs. But I also had a literally sleepless night babysitting a billion or so dollars worth of equipment (plus about 200 staff) as we checked out all the machines to see that there was nothing untoward happening. Cost around £2mllion.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
  4. Is there a better way? by Pope · · Score: 1

    No, not really. Leap seconds are a known quantity, make sure your code handles it.

    Next question.

    --
    It doesn't mean much now, it's built for the future.
    1. Re:Is there a better way? by itzly · · Score: 1

      So where's the list of the future leap seconds so I can make sure my code will handle them ?

    2. Re:Is there a better way? by Anonymous Coward · · Score: 1

      They're not a known quantity b/c they do not get announced far enough in advance. 7 months is not that long of a time. And given that it is 1 second it's not significant for humans, and just messes stuff up.

    3. Re:Is there a better way? by msauve · · Score: 1

      Does all of your code require deterministic knowledge of all future inputs? If so, I can't see how it can provide any real utility.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    4. Re:Is there a better way? by itzly · · Score: 1

      No, but if the code is supposed to handle leap seconds properly, it needs to know in advance when they occur.

    5. Re:Is there a better way? by Archangel+Michael · · Score: 2

      You know in advance already, they are giving you about six months advance notice. Make sure your code handles generic "leap event" with the ability to input the actual values at future, undetermined time ... but in advance of the actual leap event. I could see it requiring at least two inputs, Value change, and time to insert said time.

      Should be easy.

      --
      Agent K: A *person* is smart. People are dumb, stupid, panicky animals, and you know it.
    6. Re:Is there a better way? by Archangel+Michael · · Score: 1

      It is plenty of time. Both human and computer time.

      --
      Agent K: A *person* is smart. People are dumb, stupid, panicky animals, and you know it.
    7. Re:Is there a better way? by msauve · · Score: 1

      That's already provided.

      And, before you say you need to know that before you write your code, do you also need to know in advance that "JohnQSmith/aE8&fv84%" might someday be a user's name and password? If you're writing a program which requires deterministic future time intervals, you shouldn't be using the UTC time scale.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    8. Re:Is there a better way? by itzly · · Score: 1

      I don't see why you would think that any program would care about the exact password somebody is going to use. On the other hand, plenty of programs keep track of time and/or do calculations based on the time. And not every program is connected to the internet, so it can download the newest update of leap seconds.

    9. Re:Is there a better way? by msauve · · Score: 4, Insightful

      If it's not network connected (ntp or gps), or connected to a properly calibrated atomic clock, it's going to be off by more than a second when the next leap second rolls around, anyway.

      If you don't need time accurately sync'd to UTC, you can ignore leap seconds, so what's the problem? And if you do need time sync'd to UTC, you will need some regular external input which can include upcoming leap second info, so what's the problem?

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    10. Re:Is there a better way? by Anonymous Coward · · Score: 0

      First Pepperpot: How does Doctor bloody Bernofsky know which zoo it came from?

      Second Pepperpot: He knows everything.

      First Pepperpot: Oooh, I wouldn't like that, that'd take all the mystery out of life.

    11. Re:Is there a better way? by Darinbob · · Score: 1

      The better way is just to ignore the drift. Define UTC to unrelated to the rotation of the earth or its revolution around the sun. There have been attempts to define UTC this way but is still ongoing. Ie, there's a UT1 time zone that does this and the leap second for UTC is only to keep it within a certain range of UT1.

    12. Re:Is there a better way? by nedlohs · · Score: 1

      Maybe you should fu\ind a different vocation.

      Does your program really need to know in advance when the user will enter the letter "a" in a name field?

    13. Re:Is there a better way? by Neil+Boekend · · Score: 1

      Use another time standard if it bothers you. UTC is meant to be corrected with leap seconds.
      If leap seconds don't matter: use TAI.

      --
      Well, I might have a way, but it only works on a semi spherical planet in a vacuum.
    14. Re:Is there a better way? by Anonymous Coward · · Score: 0

      BURMA!

  5. Better way? by msauve · · Score: 5, Insightful

    "Is there a better way of dealing with the need for leap seconds?"

    Sure, use/write software which correctly handles time. Leap seconds with their current, well defined behavior, have been around for over 40 years.

    If you have software which assumes a minute is always 60 seconds, an hour is always 60, 60 second minutes, etc., you're doing it wrong.

    --
    "National Security is the chief cause of national insecurity." - Celine's First Law
    1. Re:Better way? by Lord+Apathy · · Score: 1

      Sure, use/write software which correctly handles time. Leap seconds with their current, well defined behavior, have been around for over 40 years.

      This is what I was thinking but with OS and hardware. The "slowdown" rate is a known factor. I don't see why modern system that have to be so precise don't already have this factored in. Just have them compensate for the need all the time instead of having to force the issue every few years.

      Problem solved.

      --

      Supporting World Peace Through Nuclear Pacification

    2. Re:Better way? by Anonymous Coward · · Score: 0

      unfortunately, the software developers don't know when a leap seconds will be added. Leap seconds aren't like the extra days in leap-years, which can be calculated ahead of time, instead the Paris Observatory decides when one is added. That means the software system needs to be able to handle any arbitrary day having a leap second added to it or not, and it needs to get that information from somewhere secure & trusted.

    3. Re:Better way? by itzly · · Score: 1

      The earth's rotation isn't actually a known factor. It varies. http://upload.wikimedia.org/wi...

    4. Re:Better way? by CastrTroy · · Score: 1

      How about instead of setting the time to 23:59:60, the value 23:59:59 happens twice. When we have DST, and the time falls back an hour, we don't switch to some odd non-existant number for an hour so that we don't have overlap. We just set the clocks back to 1 AM. So all the times between 1 AM and 2 AM happen twice when switching off daylight savings. This might cause some problems. but at least it's fault tolerant in the sense that it's not going to crash because the date format wasn't as expected when dealing with older systems or systems that were naively programmed.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    5. Re:Better way? by 0123456 · · Score: 1

      One of the projects I worked on spent weeks just checking that the system could handle leap seconds correctly, which required getting special firmware from the GPS manufacturer which allowed them us trigger artificial leap seconds. The spec for the communication protocol that system implemented had to have special cases purely to handle leap seconds, and someone has to be on call every time it happens just in case something bad goes wrong.

      They cause havoc around the world for minimal beneift. Those who care should adjust and let the rest of the world get on with their lives.

    6. Re:Better way? by msauve · · Score: 4, Informative

      What you're suggesting is a variable length second. That's what GMT was before the current UTC came along. The slowdown of Earth's rotation is NOT a known factor, it varies. Things like earthquakes can change the period unpredictably.

      Modern UTC ticks at a predictable rate, which is useful for some sciences. Leap seconds keep it in sync with the Earth's rotation, which is useful for others. UTC with leap seconds was deliberately intended to bridge those two needs.

      If someone wants a time scale without leap seconds they shouldn't be using UTC, there are others to choose from, such as TAI or GPS.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    7. Re:Better way? by Anonymous Coward · · Score: 0

      Please provide a link to the API documentation of which you speak for properly handling date/time notation/math, including leap seconds.
      Is it POSIX compliant?
      Is it portable?

    8. Re:Better way? by Anonymous Coward · · Score: 0

      Days don't have a fixed number of hours, and minutes don't have a fixed numbed of seconds.

      But hours have 60 minutes, weeks have 7 days, and years have 12 months,

    9. Re:Better way? by Anonymous Coward · · Score: 0

      How about instead of setting the time to 23:59:60, the value 23:59:59 happens twice.

      Because that would be extremely broken as 00:00:00 - 23:59:59 is _one_ second, not two. Anything measuring the length of time would work incorrectly, and there would be no way for the code to know that. When we put the clock back an hour, no timestamp occurs twice in succession. We can measure the time in between.

    10. Re:Better way? by CastrTroy · · Score: 2

      You still end up with problems like when is 1:30 AM when you switch off DST. Is it the 1:30 AM before or after the clocks changed? 1:45 AM EDT is actually before 1:30 AM EST. Also, systems probably have to deal with this kind of junk all the time. Very few computers have an extremely accurate clock, so they have to be adjusted every so often anyway. If your system can't handle the time getting set back by a second or two, then you are going to run into problems whenever you recalibrate your clock. At least if you don't have unexpected things like 23:59:60 happening, then it will work for the majority of situations. Systems the really need to care about the leap second can account for it, and to the rest of the systems that really don't care about it, it will just look like a clock recalibration.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    11. Re:Better way? by chipschap · · Score: 1

      I've been waiting for someone to blame it on global climate change.

    12. Re:Better way? by GuldKalle · · Score: 1

      Instead it will crash when one event happens at 23:59:59.8 and another happens at 23:59:60.4 (old notation). In your proposed notation, there would be no way of knowing that event one happened before event two.
      In the case of DST, most systems use UTC internally, which doesn't have a notion of DST. Or said in another way, we don't adjust the base clock, we just change time zone.

      --
      What?
    13. Re:Better way? by msauve · · Score: 1

      "How about instead of setting the time to 23:59:60, the value 23:59:59 happens twice"

      So, an event which should run once at 23:59:59 gets run twice? Or if you're logging event sequences, an event which happens later can be logged at an earlier time? I predict big issues with database sync in your future.

      When DST happens, there is no duplication of time numbering, the time scale itself changes. 1 AM EDT is not 1 AM EST.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    14. Re:Better way? by bobbied · · Score: 1

      If you have software which assumes a minute is always 60 seconds, an hour is always 60, 60 second minutes, etc., you're doing it wrong.

      Only once every 40 years or so. Not so wrong in reality, for most applications anyway.

      The alternative is pretty a pretty complex bit of programming to "do it right". Those applications that do need to be that accurate, need the complex bits of code, the bulk can just keep using the constants you learned in first grade. All this reminds me of the Y2K hoopla, which was much ado about nothing, or the DST changes of the last few decades which where rife with fear mongering for profit.

      I'd say that if your application is more complex than necessary or fails to work as required, THEN you are "doing it wrong" so if 60 seconds in a min fulfills your requirements and that's what you used, you did it right.

      --
      "File to fit, pound to insert, paint to match" - Aircraft Maintenance 101
    15. Re:Better way? by itzly · · Score: 1

      That's not such a crazy thought. Melting ice can change the mass distribution, which can change rotational speed.

    16. Re:Better way? by Anonymous Coward · · Score: 1

      It means that software needs to be tested for leap second compliance. Our solution to the leap second problem is very simple. We'll be moving our daily server reboots to align with the leap second. We'll simply shutdown our server software. Let the leap second hit our system then reboot. This will cause a temporary disruption to services but our users aware of it. Another solution is to do a leap second smear aka extended the seconds gently over the day but we are reliant on outside data sources and this could cause syncing errors.

    17. Re:Better way? by DarkOx · · Score: 2

      DST isn't so much a problem because if you are doing things right, mostly you store time in UTC and apply the timezone when you display it or convert human inputs from it. Well really some library does this for you using the published tzdata but you get the idea. This gives monotone time, in that its always increasing. Your proposal actually makes things harder because you will end up with two events that logically can't coincide having potentially the same timestamps or even timestamps that appear in the wrong order depending on resolution.

      Suppose Job A is suppose to run at 23:59:59.00
      Job B uses the output of Job A and is an event triggered completion of job B

      Job A logs that it started at 23:59:59.01
      Job A logs it completed at 23:59:59.97 (it took less than a second to run)
      Now we insert our leap second by resting the clock to 23:59:59.00 again
      Job B runs and logs its start time at 23:59:59.02 (this should be impossible! A isn't finished yet)

      And really most of the time logs of least concern, but you would create problems for all kinds of systems that interact with each other and make time based decisions.

      --
      Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
    18. Re:Better way? by Minwee · · Score: 1

      Thanks, Obama.

    19. Re:Better way? by Anonymous Coward · · Score: 0

      Life's too short. I'll let NTP deal with it and happily ignore leap seconds.

    20. Re:Better way? by SuiteSisterMary · · Score: 1

      Your job should have some sort of flag set, indicating completion, simply to avoid bog-standard clock issues.

      --
      Vintage computer games and RPG books available. Email me if you're interested.
    21. Re:Better way? by DarkOx · · Score: 1

      It does, B runs when A says its finished. So now we are looking at the logs, and B has logged a start time before A logged its end time. What does this mean? Does it mean there is a bug in A that caused it to release the lock B was waiting for prematurely? Was everything just fine, but it happen to be clock change night? We can't tell.

      23:59:60 being its on distinctly represent second would make what transpired perfectly clear, calling the next second by the same identifier 23:59:59 cases us to lose information.

      --
      Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
    22. Re:Better way? by DarkOx · · Score: 1

      Oh yes before you say anything. I realize we still have the underlying integer representation. So if we know ahead of time we need to keep that, there is an out.

      Now do you want to explain to the PHP how (14205????) 23:59:59 is a time and that 142057???? + 1 is also 23:59:59 but its really a second later. Sounds like a long meeting to me.

      --
      Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
    23. Re:Better way? by 0123456 · · Score: 2

      Life's too short. I'll let NTP deal with it and happily ignore leap seconds.

      That's what most people thought before the last leap second, then they found all their Java services sucking up 100% of the CPU in the morning.

    24. Re:Better way? by Anonymous Coward · · Score: 0

      gettimeofday() returns stuct timeval

      struct timeval {
                                time_t tv_sec; /* seconds since Jan. 1, 1970 */
                                suseconds_t tv_usec; /* and microseconds */
      };

      During a leap second, tv_usec could go up to 1999999.
      Technically this is posix compliant since it doesn't specify it.

      clock_gettime() is also Posix, not every UNIX has implemented it yet since it was specified in 1993. One of the clocks that may be queried could be a TAI clock.

      Modern UNIX systems do include the same historical/future timezone database for time related conversions. This includes functions for converting UTC from a normal time() function call into TAI. It also allows you to convert to local time from TAI, with proper leap second correction.

      This database is also included in every Java distribution.

    25. Re:Better way? by Darinbob · · Score: 2

      Or just don't worry about it. I work with systems where you must deal with clock drift over time and time drift across the network. So the addition of a second doesn't change much at all. The times when it matters most is with things like satellite navigation systems.

    26. Re:Better way? by Anonymous Coward · · Score: 0

      Umm... The very definition of a minute is that it *IS* always 60 seconds. Why would I be wrong if I wrote software based on that? That's like saying I shouldn't "assume" that a mile is 5280 feet. Its not really an "assumption" if that's its very definition.

    27. Re:Better way? by Lord+Apathy · · Score: 1

      The slowdown of Earth's rotation is NOT a known factor, it varies. Things like earthquakes [space.com] can change the period unpredictably.

      Yes, I suppose that would make my plan rather difficult to implement.

      --

      Supporting World Peace Through Nuclear Pacification

    28. Re:Better way? by Guy+Harris · · Score: 1

      How about instead of setting the time to 23:59:60, the value 23:59:59 happens twice.

      Because that would be extremely broken as 00:00:00 - 23:59:59 is _one_ second, not two.

      Broken, but POSIX-compliant.

    29. Re:Better way? by Anonymous Coward · · Score: 0

      Leap seconds keep it in sync with the Earth's rotation, which is useful for others.

      For whom? I can't think of any use case which both needs to stay in sync with the Earth's rotation, and also needs second-level (or even minute-level) precision.

      If UTC were replaced with TAI (i.e. the same thing, without the leap seconds), I don't believe anything of value would be lost.

    30. Re:Better way? by Anonymous Coward · · Score: 0

      But the clocks don't reset to 23:59:59. That second doesn't happen again. A second is being added, not repeated. Forget about reading the fine article, the /. summary clearly states this.

                                                          2015 June 30, 23h 59m 59s

                                                          2015 June 30, 23h 59m 60s

                                                          2015 July 1, 0h 0m 0s

      Now, if your software can't handle a minute that lasts 61 seconds, that's a different story. But your scenario isn't what is going to happen in June

    31. Re:Better way? by 31eq · · Score: 1

      The trouble is, the Internet is standardized on UTC. You can keep your system clock to TAI and use the "right" time zone files, but you have to deal with the offset between your clock and NTP, and the complexity of NTP broadcasting the leap second as it happens. (Or forego the convenience of NTP altogether, of course.)

      There should be an RFC to decree that for networking purposes, we'll ignore this and future leap seconds and keep "Internet UTC" as a fixed offset from TAI. People who care about strict UTC (and it would, apparently, cost millions of dollars to fix critical military systems) can use libraries or time zones to get it. The rest of us will know our system clocks keep ticking away with minimal breakage.

      What will probably happen is that we follow the leap second again, things break again, and any impetus to fix the underlying cause dies away by the time the next leap second comes around. And eventually UTC will be defined as consistent atomic time and the people who wanted UTC for what it was originally designed for will have to learn to call it something else.

    32. Re:Better way? by Guy+Harris · · Score: 1

      Umm... The very definition of a minute is that it *IS* always 60 seconds. Why would I be wrong if I wrote software based on that? That's like saying I shouldn't "assume" that a mile is 5280 feet. Its not really an "assumption" if that's its very definition.

      Nevertheless, according to the definition of UTC, the clock goes from 23:59:59 to 23:59:60 if there's a positive leap second.

    33. Re:Better way? by jdschulteis · · Score: 2

      How about instead of setting the time to 23:59:60, the value 23:59:59 happens twice. When we have DST, and the time falls back an hour, we don't switch to some odd non-existant number for an hour so that we don't have overlap. We just set the clocks back to 1 AM. So all the times between 1 AM and 2 AM happen twice when switching off daylight savings.

      The times between 1 AM and 2 AM don't really happen twice on the day daylight time ends, they are simply ambiguous unless daylight or standard time is specified. (In other words, you don't know which of 2 possible seconds 1:42:42 AM refers to until daylight or standard time is specified.) Similarly, your proposal would make 23:59:59 ambiguous without some additional specifier, in which case why not just use 23:59:60?

      There is no one perfect solution, which is why there are multiple time standards, including TAI and GPS which do not incorporate leap seconds.

      Many programmers are ignorant as to the more subtle aspects of timekeeping.

      It does not help that for many programs, it simply doesn't matter.

      It is also very easy to slip assumptions that are broken by leap seconds into code. (Every minute has 60 seconds--wrong! Every hour has 3600 seconds--bzzt! Every day has 86400 seconds--fail!)

    34. Re:Better way? by geezer+nerd · · Score: 1

      I find this confusing.

      If at 23:59:59 the clock actually changes to 23:59:60 (= 00:00:00), then a second has been taken away, not added. The second denoted 23:59:59 did not happen.

      I would think that to "add" a leap second, at 00:00:00 the clock should read 23:59:59.

      Can someone clarify?

    35. Re:Better way? by techno-vampire · · Score: 1

      Only once every 40 years or so. Not so wrong in reality, for most applications anyway.

      No, Leap Seconds are added at irregular intervals to adjust for the slowing down of the Earth's rotation. The last one was added on June 30, 2012, only three years before this one. The 40 years you're referring to is how long the system has been in place. Do try to keep up.

      --
      Good, inexpensive web hosting
    36. Re:Better way? by bickerdyke · · Score: 1

      23:59:60 is well defined for decades and shouldn't be unexpected to anyone.

      --
      bickerdyke
    37. Re:Better way? by phantomfive · · Score: 1

      If you need a clock that doesn't have leap seconds, or doesn't go backwards, then on Linux call clock_gettime(), which is a monotonically increasing clock. On other systems, there are similar functions.

      If you write software that needs to know the exact time of day, then you need to be prepared for corrections, jumping forward or backwards by hours, days, or even years as the computer adjusts itself getting a better knowledge of what the current date actually is. If you can't handle all those cases, then your software is buggy.

      --
      "First they came for the slanderers and i said nothing."
    38. Re:Better way? by nedlohs · · Score: 2

      23:59:60 != 00:00:00 is the point.
      It's an extra second inserted between 23:59:59 and 00:00:00. During that extra second the clock reads 23:59:60.

    39. Re:Better way? by ihtoit · · Score: 1

      time is stored in UT and converted for display - DST/TZ is added between stored value and displayed value. Stored time is ALWAYS in UT, that never changes. That's why databases don't fall arse over tit every time the DST switch is thrown.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    40. Re:Better way? by ihtoit · · Score: 2

      because 23:59:60 isn't 00:00:00. It's 00:00:00-1. Ergo, it should read 23:59:60 otherwise you'll catch the clock in an endless loop as it repeatedly applies the adjustment to 23:59:59 so it reads 23:59:59 again, to have it happen just once you just make the last minute of that one particular day last 61 seconds (remember this is an adjustment to STORED TIME, not DISPLAYED TIME).

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    41. Re:Better way? by phayes · · Score: 1

      How lucky for all of us who do not have any Java services then isn't it?

      --
      Democracy is a sheep and two wolves deciding what to have for lunch. Freedom is a well armed sheep contesting the issue
    42. Re:Better way? by bobbied · · Score: 1

      Sorry... I'm still working on the cleanup from Y2K fallout and looking forward to Unix time running out in 2038....

      --
      "File to fit, pound to insert, paint to match" - Aircraft Maintenance 101
    43. Re: Better way? by Anonymous Coward · · Score: 0

      Only for 32-bit Unix

    44. Re:Better way? by AmiMoJo · · Score: 1

      I've got a better idea. Let's just build a big giant engine to correct the orbit of the earth to match our time system.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    45. Re:Better way? by msauve · · Score: 1

      "If UTC were replaced with TAI (i.e. the same thing, without the leap seconds), I don't believe anything of value would be lost."

      Of course it would. A precise, well defined timescale closely tied to the rotation of the Earth would be lost.

      Civil time has for millennia been linked to sol, and many jurisdictions specifically define legal time based on UTC (e.g. 15 U.S. Code 261.) Astronomers use UTC as an easily obtained analog to the other forms of Universal Time. Sundials. Celestial navigation. Space operations (eliminating leap seconds would require code changes to the GPS system, and others).

      You're certainly free to change your systems to TAI, but any proposal to remove leap seconds from UTC creates not only a redundant timescale (alongside TAI, TT and GPS), but is an attempt to force undesired change upon others. UTC was specifically created to track UT1 withing 0.9 seconds, and there are disciplines and systems which adopted UTC based on that premise.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    46. Re:Better way? by msauve · · Score: 1

      If everyone would just push on the object to the east of them, we could speed up the Earth's rotation and fix this right now.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    47. Re:Better way? by yet+another+SanTiago · · Score: 1

      How about instead of setting the time to 23:59:60, the value 23:59:59 happens twice.

      This is how is leap second handled in POSIX systems, with the small different that it is not 23:59:59 but (following) 00:00:00 that happens twice.

    48. Re:Better way? by unrtst · · Score: 1

      How the flying fuck is that any different from DST?

      You are either scheduling your jobs by timestamp/UTC, or by something affected by a DST change.

      Your example applies exactly the same to DST change events... just change the duration it took Job A to complete.

      Parent is essentially saying (though he may not be aware precisely), "let's use TAI instead of UTC, and use tzdata (or similar) to account for the leap second".

      That's actually somewhat like what strict unix time does: http://en.wikipedia.org/wiki/U...

      actual UTC, gmtime of unixtime, unix timestamp
      1998-12-31T23:59:59.00, 1998-12-31T23:59:59.00, 915 148 799.00
      1998-12-31T23:59:60.00, 1999-01-01T00:00:00.00, 915 148 800.00
      1999-01-01T00:00:00.00, 1999-01-01T00:00:00.00, 915 148 800.00
      1999-01-01T00:00:01.00, 1999-01-01T00:00:01.00, 915 148 801.00

      Going from unixtime back to UTC during the leap second is like trying to go from DST back to UTC during "fall back".
      FWIW, it also does the opposite if a leap second is a removal (day ending in UTC 23:59:58.9999-)... unix time skips over that second entirely.

      Do to all that, many of the standard time utilities don't actually parse 23:59:60. I'm sure there are many that do (and do not use unixtime as the underlying counter), but many of them don't. Cheap example:
      $ TZ=UTC date -d "1998-12-31 23:59:60"
      date: invalid date `1998-12-31 23:59:60'

    49. Re:Better way? by sverdlichenko · · Score: 1

      What exactly is well-defined in current leap second nightmare? It depends on earth rotation changes, it is unpredictable, it requires keeping a database of leap seconds for all times known. Overall, it demands updating perfectly good system at random time intervals or facing inconsistent timestamps.
      I really wish TAI or some predecessor of GPS timescale was chosen for computer timescale. Leave astronomic events to astronomers.

    50. Re:Better way? by complete+loony · · Score: 1

      If your machine is not connected to an atomic clock, your measurement in UTC is likely to be slightly off anyway. So tweaking the rate of time passing so that every day has the same number of seconds is a reasonable compromise. I remember hearing that google do this in their data centres.

      If you do have a local atomic clock, record timestamps against TAI and convert to UTC. But even there you have to deal with clock drift, though the error bar should be much smaller.

      --
      09F91102 no, 455FE104 nope, F190A1E8 uh-uh, 7A5F8A09 that's not it, C87294CE no. Ah! 452F6E403CDF10714E41DFAA257D313F.
    51. Re:Better way? by msauve · · Score: 1

      Really? UTC is defined by a clearly written normative standard, ITU-R TF.460-6. If you don't consider that well defined, you have no understanding of how standards work.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    52. Re:Better way? by sverdlichenko · · Score: 1

      How many seconds would be between 00:00:00 January 1st 2015 UTC and 00:00:00 January 1st 2050 UTC?

    53. Re:Better way? by msauve · · Score: 1

      How many emails will you receive between the current moment and the end of the year? It's not deterministic. Deal with it.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    54. Re:Better way? by aXis100 · · Score: 1

      I used to build & configure production reporting systems for industry, and the increase in complexity on the math was freaking painful when you had to take in to account daylight savings. Instead of assuming 24 hours in a day, you would always have to calculate "day end minus day start".

      These methods would handle leap seconds just as well, but the cost to performance is massive for such a rare event.

    55. Re:Better way? by sverdlichenko · · Score: 1

      Exactly my point. UTC is well-written standard, targeted to users in need of timescale matching astronomic time with sub-second precision, and their requirements are greatly different from ones IT have. Majority of computers do not give a shit about how Earth is rotated at given point of time, and that which care are controlling telescopes or ICBMs, where 0.9 seconds difference may be to big anyway.
      Timescale is an abstract concept, not a real world event series like email, and as such, it may be designed to fit whatever it purpose is. IT needs uniform, monotonic and deterministic time, and UTC fits badly, although better than local time with DST adjustments or some hypothetical timescale with floating second length.

    56. Re:Better way? by msauve · · Score: 1

      You were doing it wrong. If you do it right, you use UTC (or even the local *ST or Unix time) for everything. Conversion to/from *DT is cosmetic, and only occurs in the UI.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    57. Re:Better way? by msauve · · Score: 1

      So, quit complaining, stop being lazy, and convert your systems to use TAI or GPS or TT.

      BTW, UTC, even with leap seconds, is perfectly monotonic, you apparently don't understand the meaning. You say IT requires deterministic time, but don't say why? If you need an event to happen X seconds in the future, you can do that. If you need an event to happen at a specific time in the future, you can do that, too. Leap seconds get in the way of neither, except for the lazy. It's a simple matter of picking the right timescale for the need.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    58. Re:Better way? by sverdlichenko · · Score: 1

      You apparently don't understand that "monotonic" makes only one of the three "uniform, monotonic and deterministic". Deterministic is needed to write simpler programs and have less room for error. There is only so much programmers' power and if it is used to fight timescale issues, other, more useful tasks are delayed. Last leap second wasted a lot of man-hours for nothing.
      And stop telling me what to do unless you pay me.

    59. Re:Better way? by msauve · · Score: 1

      You're doing it wrong.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    60. Re:Better way? by petermgreen · · Score: 1

      That works if all you care about but it breaks down as soon as you have to handle future and regularly scheduled events and/or deal with external constraints that are defined in term of local time.

      For example suppose you divide the day into shifts, and the shifts are defined in terms of local time (and have been since long before your computer system came along). Once a year you will have a shift that is an hour longer than normal and once a year you will have a shift that is an hour shorter than normal. That means many calculations can no longer assume shifts or "days" (where a "day" is a group of shifts) of constant length.

      And then theres the fact you can't reliablly convert future local times to UTC because DST rules are at the whim of the legislature. If your users schedule a meeting at 9am local time in a few months time they will expect it to stay scheduled at that local time even if the government changes the mapping from local time to universal time in the time between the meeeting being scheduled and it happening. Have fun with meetings between users in different jurisdictions.

       

      --
      note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
    61. Re:Better way? by certsoft · · Score: 1

      While GPS receivers are supposed to use 23:59:60 a receiver I was testing the last time there was a leap second did indeed generate 23:59:59 twice. Our software now accepts either. We're getting started on a new system this year, hopefully we'll get a selection of GPS receivers wired up to see what they do on June 30th.

    62. Re:Better way? by Neil+Boekend · · Score: 1

      Why doesn't NTP give both UTC and TAI (or GPS)?
      Or devise a similar system with as only difference that it gives TAI or GPS.

      --
      Well, I might have a way, but it only works on a semi spherical planet in a vacuum.
    63. Re:Better way? by AmiMoJo · · Score: 1

      That's probably why satellite systems don't use leap seconds. GPS time is currently 16 seconds ahead of UTC because of this.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    64. Re:Better way? by msauve · · Score: 1

      I'm so sorry you're forced to deal with reality.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    65. Re:Better way? by SuiteSisterMary · · Score: 1

      How do you deal with, say, NTP update fixing your clock drift?

      Personally, I like the idea of a 'second' being of variable length far better than shoehorning a '60' into a field that's clearly defined as '0 to 59'.

      --
      Vintage computer games and RPG books available. Email me if you're interested.
  6. Make leap miliseconds by NotInHere · · Score: 1

    Then engineers build their systems so that they work with leap miliseconds, as otherwise they would fail more often. If your system fails only every 4 years and then only for a few seconds, you won't invest in fixing the problem. If the event occurs more often, then you're forced to.

  7. Earth not _turning_ slower, but already is slower by lalleglad · · Score: 0

    As far as I understand, the problem is not that Earth is slowing down, but that the speed is slower than our present standard of time.

    Therefore the sentence in the fine article above:

            "in order to cope with Earth's rotation slowing down a bit"

    is not correct.

    The reason is not that Earth is slowing down, but that it already is slower, but actually quite stable (at least for now, that is).

  8. QA solution to leap second issues by SuperKendall · · Score: 1

    There should be a leap second every month, followed by elimination of a second the following month. That way all code would quickly be adapted to work correctly with leap seconds.

    Then of course you have to program to handle the months you don't omit a second because you really wanted the leap second to take...

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:QA solution to leap second issues by camperdave · · Score: 1

      Why do that? Why not just fix the code to properly handle leap seconds and skip seconds the way they are defined now. Or, if it so all fired important, use TAI instead of UTC and use PTP instead of NTP.

      --
      When our name is on the back of your car, we're behind you all the way!
    2. Re:QA solution to leap second issues by Anonymous Coward · · Score: 0

      To make sure people fix their code.

      For the same reason that years ago, when people discovered that several drivers would crash when a certain counter in the Linux kernel reached its max value and started over. The kernel devs decided to set the counter to start at the max value minus five minutes. Then the affected drivers would crash five minutes after boot, instead of a year after boot, and getting bug reports took several times five minutes rather than several years.

  9. Dammit! by Chillas · · Score: 1

    Dammit, I'll be working! I better get OT for this.

    --
    --- Math illiteracy affects 8 out of every 5 people.
  10. Man vs Machine? by duckintheface · · Score: 4, Interesting

    There are two domains to consider.... human and computer. Humans won't notice or care about sunrise being off by one second or even much more than that. Computers need exact consistency. So the solution is, as stated, to update the clocks to the actual rotation only infrequently. Everyone, man and machine, will be happy.

    --
    "He took a duck in the face at 250 knots." -- William Gibson, Pattern Recognition
    1. Re:Man vs Machine? by Anonymous Coward · · Score: 0

      Humans won't notice or care about sunrise being off by one second or even much more than that.

      The ones wielding sextants do.

      So the solution is, as stated, to update the clocks to the actual rotation only infrequently.

      The solution is not doing arithmetic using time_t or similar naive assumptions about the passage of time. When you do these things you are guaranteed a visit from the fail whale sooner or later anyway.

    2. Re:Man vs Machine? by Anonymous Coward · · Score: 0

      There are two domains to consider.... human and computer. Humans won't notice or care about sunrise being off by one second or even much more than that. Computers need exact consistency. So the solution is, as stated, to update the clocks to the actual rotation only infrequently. Everyone, man and machine, will be happy.

      Networks need exact consistency, or more specifically network timing.

      That POS real-time clock mechanism in your average PC holds time as good as a $10 wristwatch, and most services could care less if they're off by a few minutes. Or a different time zone altogether.

    3. Re:Man vs Machine? by Shakrai · · Score: 3, Informative

      That POS real-time clock mechanism in your average PC holds time as good as a $10 wristwatch

      NTP can keep time to within tens to hundreds of milliseconds across the public internet. Plenty good enough for 99.9999% of the applications out there. The RTC only comes into play across reboots. Even Windows has implemented NTP (albeit a crappy implementation that's "only" good to within a second or two) by default for more than a decade now.

      --
      I want peace on earth and goodwill toward man.
      We are the United States Government! We don't do that sort of thing.
    4. Re:Man vs Machine? by Anonymous Coward · · Score: 0

      you could always re-define the second as being 0.000001% longer. But even more stuff would break then.

    5. Re:Man vs Machine? by Anonymous Coward · · Score: 0

      Just make sure you aim the windows at the right name for round-robin assignment (i.e. time.nist.gov) Naming another server specifically can result in bad times or no synchronizing due to overload of those servers.

    6. Re:Man vs Machine? by bickerdyke · · Score: 2

      Ignoring the "more stuff would break", this wouldn't help either, as not every day is that 0.000..001% longer. Rotation of the earth is much more irregular than precision timekeeping stuff.

      --
      bickerdyke
    7. Re:Man vs Machine? by Obfuscant · · Score: 2

      Even Windows has implemented NTP (albeit a crappy implementation that's "only" good to within a second or two) by default for more than a decade now.

      The default for Windows 7 (non-domain) is to update once a week, and I routinely found my PVR system off by a minute or more. There is a way to change the update interval but you either need to download a special program to make the changes or edit the registry by hand.

    8. Re:Man vs Machine? by david_thornley · · Score: 2

      How accurate is a sextant? If it doesn't accurately provide seconds of arc, a one-second discrepancy won't matter.

      --
      "When you have eliminated the unacceptable, whatever is left, however improbable, must be the truthiness" - Holmes
    9. Re:Man vs Machine? by Anonymous Coward · · Score: 0

      Networks need exact consistency, or more specifically network timing.

      No, they don't. There are some types of communication links which, at the physical layer, require very precise timing. And those devices generally rely on an attached high precision timing source.
      WHEN computers care about Time, they care about Timing Offsets, which is not at all the same thing as the Time of Day. For most hardware and applications, if shit breaks when the clock changes you're doing something horribly wrong.

      As for NTP, that's not for maintaining high precision at all. It's a mechanism for keeping your clocks reasonably updated without having to manually go around and set things, particularly when a device boots up. The vast majority of computers and computer networks don't need the time to be correct or synch'd up to function, it just makes it easier for us to figure out what's going on if everything is synched within a few seconds. Anything requiring actual precision will use a local high precision timing source, which are for calculating offsets not time of day.
        The very few applications (telemetry/GPS, etc.) which DO care about the actual "time of day" and require high precesion are the only real exception, and ought to already be able to account for sub-second variances.

    10. Re:Man vs Machine? by TitusGroan8856 · · Score: 1

      >but you either need to download a special program to make the changes or edit the registry by hand... Or you need to learn how to use .cmd/.bat files with the system scheduler or at command.

    11. Re:Man vs Machine? by Obfuscant · · Score: 1

      There is already a service running that deals with time. Why should I schedule another one to do the same thing?

    12. Re:Man vs Machine? by sverdlichenko · · Score: 1

      Why exactly computers need to know precise moment of sunrise? My web server does not care.

    13. Re:Man vs Machine? by Anonymous Coward · · Score: 0

      It is exactly the opposite: Computers don't care if it's snowing in summer but humans will notice. That's why we switched to the Gregorian calendar.

      Adding leap seconds leads to inconsistency. June 30 will be 86401 seconds long. But all the software will report it as only 86400 seconds as if the leap second wouldn't exist.

      Most software makes the same mistakes with DST. It happily uses the current DST scheme for the future and for the years nefore DST ahs been invented.

      Computers should just count seconds since some fixed date and not care about day and night or summer and winter. But when translating this into a "human readable" form the software should get it right, which is very very complicated to get right with all these "special inconsistencies".

    14. Re:Man vs Machine? by petermgreen · · Score: 1

      Personally I suspect that slight variations in the length of a "wallclock second" would be much less disruptive than a special case 22:59:60 time which can't be represented in many time formats and is sufficeiently rare that problems with it's handling are likely to go unnoticed during testing.

      Yes a mechanism for adjusting the speed of clocks would be needed, but we already have such mechanisms to deal with the crap tolernaces of most local clocks.

      --
      note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
    15. Re:Man vs Machine? by mwvdlee · · Score: 1

      The frequency of your incomming AC isn't quite the stable 50/60Hz but they tend to correct it so it averages out to perfect 50/60Hz on a long enough time scale. As I understand it, they use this same type of correction to account for leap seconds, which help keep a lot of cheap clocks running accurately.
      This is a story I heard over a decade ago from an electronics teacher, don't know if it's actually true.

      --
      Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
    16. Re:Man vs Machine? by mwvdlee · · Score: 1

      Good to hear. What is your website URL?
      I'd like to place an order right in the last second of June for a product with a discount ending in June, then sue you for not applying the discount even though the order was placed on June 30th, 23:59:60 UTC (which is probably somewhere in the middle of the day for you).

      --
      Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
    17. Re:Man vs Machine? by michelcolman · · Score: 1

      Yes, why can't we just decree that, instead of 12:00:00 UTC on two very specific days of the year corresponding to the time when the sun is precisely overhead some specific point in Greenwich, it will now be precisely overhead some point a few hundred meters east of that point (still in Greenwich)? Or, for all I care, over Southend-on-Sea (several hundred years from now)? WIll that make any difference at all in people's lives? People wielding sextants can just compensate for the difference, I don't see how that would be a problem. It would be a small correction that only changes slowly over time.

      At some point we can make time zone changes without touching UTC. Time zones have been shifted so many times in the recent past, I don't see how it could be a huge problem to make such a change once every few hundred years. And computers should be using UTC anyway, converting to and from local time for user display and time entry only.

    18. Re:Man vs Machine? by Eunuchswear · · Score: 1

      When diagnosing problems that affect more than one machine its very useful if the times in the log files match.

      --
      Watch this Heartland Institute video
    19. Re:Man vs Machine? by sverdlichenko · · Score: 1

      Oh sure, bring it on.Your order confirmation will show perfectly good Jul 1st timestamp. This is if my website was taking any orders at all, not everyone want to sell you something :)

  11. simple! by JustNiz · · Score: 1

    >> Is there a better way of dealing with the need for leap seconds?

    We just need to make each second last a very little bit longer.

    1. Re:simple! by camperdave · · Score: 1

      You cannot redefine the second without rewriting all of science.

      --
      When our name is on the back of your car, we're behind you all the way!
    2. Re:simple! by david_thornley · · Score: 1

      And thus making the meter a very little bit longer (the meter is defined in terms of the second).

      --
      "When you have eliminated the unacceptable, whatever is left, however improbable, must be the truthiness" - Holmes
    3. Re:simple! by JustNiz · · Score: 1

      maybe it will finally come together better.

  12. here is the draft set of possible options by at10u8 · · Score: 4, Informative

    A recent draft of the set of options which will be presented when the World Radio Conference votes this fall is visible at http://acma.gov.au/Industry/Sp... This draft has options A, B, and C, but it is likely to be wordsmithed a lot before it is finished.

    1. Re:here is the draft set of possible options by Anonymous Coward · · Score: 2, Insightful

      I hope they don't chose option A. It's a hack. We already have a timescale that doesn't add leap seconds: TAI. Changing the definition of UTC is just a hack to fix broken systems. But there are so many other problems with the way systems handle time that it's kind of a moot point.

      Properly written software that requires continuance SI-seconds units will use TAI or if they don't need a global reference a local monotonic clock.

      Even TAI is something of a lie. Relativity tells us that time is relative, so any global reference clock on earth necessarily has limited precision.

      My favorite time scale is POSIX. They define a day as precisely 86400 "seconds". Obviously a POSIX second is not the same as an SI second. But it makes it trivial to compute past and future dates using a 4-line algorithm. And for _civilian_ usages, it's all you'll ever need. If you need high precision or scientific accuracy, you shouldn't be using UTC anyhow.

      The root of the problem is that people don't think about what kind of clock reference they really need. And when they convert, they don't think about the lossiness of conversion between different time scales and units. (Like with floating point arithmetic there are rules you can follow.) Hacking UTC won't make the idiots any smarter, and it's a fool's errand to think that the whole world wants or needs a single global time reference.

      Civilian time should be synchronized to the sidereal day. Business records don't need sub-second precision; 99% of the time we think in larger units like minutes, hours, and days. And all they matters is the transition between one minute, one hour, or one day to the next, regardless of the duration of an SI-second. Leap seconds and leap years are a decent compromise.

      People need to _think_ about the function of time in their applications, and stop pretending like it's a simple problem or that it can solved for you by tweaking international standards. Alternatively, just adopt the POSIX definition of the second and the day and be done with it. A POSIX day is 86400 "seconds", and by implication a POSIX "second" is not the same as an SI second and doesn't (cannot!) have a fixed duration. But that will work for the vast majority of civilian business applications. POSIX also defines a monotonic clock, which should be the local reference for an SI-second. And for the very few applications (mostly scientific) that rely on a global reference clock, just use TAI.

      Problem solved. And I didn't even need to redefine the concept of time to something completely alien to normal humans.

    2. Re:here is the draft set of possible options by 0123456 · · Score: 1

      People need to _think_ about the function of time in their applications

      Yeah, like that's gonna happen.

      and stop pretending like it's a simple problem or that it can solved for you by tweaking international standards.

      99% of of software expects a monotomically incrementing time which has 60-minute hours and 60-second minutes. Having the detault time not meet those expectations is moronic, and potentially catastrophic in a world so reliant on computers.

    3. Re:here is the draft set of possible options by Anonymous Coward · · Score: 0

      All most software cares about is that the time is increasing. The specifics of that different between applications. That the last 60 seconds of a day are skewed because of a leap second will not break algorithms which do calendar manipulations. Those that do care don't do calendar manipulations and don't care about UTC or other global reference clocks--they can and should use a system monotonic clock.

      The two domains of applications rarely overlap. Please show me an example to the contrary. Show me an application that needed to know that June 20th 2015 had a leap second, and I'll show you a broken application or a broken algorithm. If a large piece of software was juggling a data type which can identify June 20th 2015, and a data type which contains SI-second-unit data, that's almost always an application that is dealing with two separate problems. And trying to create an abstraction so you only have one data type is a good way to right crappy software. (Classic over abstraction.)

      And that's my point. People conflate the relevant characteristics of time keeping in their application. And by trying to shoe-horn (explicitly or implicitly) all the different characteristics[1], we get sloppy and poorly written solutions.

      [1] Many of them mutually exclusive, such as sidereal time and a fixed monotonic global SI-second reference; or worse, impossible, such as converting between sidereal time and TAI without loss of data.

    4. Re:here is the draft set of possible options by yet+another+SanTiago · · Score: 1

      > My favorite time scale is POSIX. They define a day as precisely 86400 "seconds". Obviously a POSIX second is not the same as an SI second.

      That is not correct. POSIX speaks about SI seconds, it just specifies that 'unix time' is *approximate* number of (SI) seconds from the start of the epoch computed by a formula from date/time. When a leap second happens, the difference of this approximation from the exact number changes by one second and unix time experiences discontinuity (leap backwards).

  13. Let them add up! by Anonymous Coward · · Score: 0

    Let them add up until we get a full leap day, then everyone can take a day off for an official holiday! Of course, if there is as much as 1 leap second per year, it will only take 86,400 years before we can take that day off! :-)

  14. tyson by fche · · Score: 1

    Solution there, it seems to me, is to inhabit unchangeable-spin planets.

    1. Re:tyson by smoot123 · · Score: 1

      Deal. Let's start building a Ringworld.

  15. Re:Earth not _turning_ slower, but already is slow by Russ1642 · · Score: 4, Funny

    The problem is that you don't understand it.

  16. Accuracy of Tools and Software by lsllll · · Score: 1

    I'm pretty sure NASA would have to account for all of these additions, but do we live in the same precision world as does NASA? Do command lines like "date +%s" historically count these seconds?

    --
    Is that a roll of dimes in your pocket or are you happy to see me?
  17. Investment oportunity by Trachman · · Score: 1

    At some point the earth will stop spinning.

    The one who will build a forecast model will know which side of the earth will be .... "sunny way up".

    Appropriate investment decisions can be made to purchase a land in the twilight zone, where is not too hot and not too cold.

    Some sources say, that earth is slowing down 1.7 milliseconds every 100 years. However the last leap second adjustment took place in 2012, http://en.wikipedia.org/wiki/L...

    Anybody know a quick and dirty way, a good formula, that would tell us when the earth will really stop rotating?

    1. Re:Investment oportunity by fche · · Score: 1

      "Anybody know a quick and dirty way, a good formula,"

      Why sure. We demonstrate the amazing power of DIVISION:

      24 hours
      -----------------
      1.7 ms/100 years

      = 5.0823529e+09 years

    2. Re:Investment oportunity by Trachman · · Score: 1

      Ok, Can you calculate the slow down, if ajdustments were done as follows: one in 2012 next one in 2015, basically every three years.

    3. Re:Investment oportunity by geantvert · · Score: 1

      According to http://en.wikipedia.org/wiki/T...

      > If other effects were ignored, tidal acceleration would continue until the rotational period of Earth matched
      > the orbital period of the Moon. At that time, the Moon would always be overhead of a single fixed place on
      > Earth. Such a situation already exists in the Pluto–Charon system. However, the slowdown of Earth's
      > rotation is not occurring fast enough for the rotation to lengthen to a month before other effects make
      > this irrelevant: About 2.1 billion years from now, the continual increase of the Sun's radiation will likely
      >cause Earth's oceans to vaporize,[11] removing the bulk of the tidal friction and acceleration. Even without
      > this, the slowdown to a month-long day would still not have been completed by 4.5 billion years from now
      > when the Sun will probably evolve into a red giant and likely destroy both Earth and the Moon.

      Anyway, your formula is wrong for several reasons. The first being that slowing down the earth rotation does not reduce its day length but increases it.

      So assuming that the rate of 1.7 milliseconds every 100 years will remain constant, daytime will increase by 17s every million years. That's about 1700s ~ 1/2 hour every 100 Million years or 5 hours every 1 billion years.

      So when the Sun will destroy earth in 4.5 billion years, one (hot) day should take about 24+4.5*5 = 46.5 hours.

    4. Re:Investment oportunity by confused+one · · Score: 1

      It's not going to stop spinning. What will happen, though, is the Earth will eventually become tidally locked with the Moon. The pair will continue to rotate around the barycenter. Unfortunately, the Earth and Moon may be engulfed by the expanding Sun before this happens.

    5. Re:Investment oportunity by fche · · Score: 1

      Thank you for your correction.

    6. Re:Investment oportunity by geantvert · · Score: 1

      The more I think about it, the more I feel that this leap second system is bogus on the long term. The problem is that the 1.7 milliseconds are cummulative.

      This is of course not true but for the sake of simplicity, let suppose that a second was defined according to the day length of 1900.

      Around year 2000, so after 100 years, each day is now 1.7 ms longer so a whole year is 365*1.7ms = 0.62s longer. A leap second will be required every 1.6 years on average.
      Around year 2100, so after 200 years, each day is now 3.4 ms longer so a whole year is 365*3.4ms = 1.24s longer. A leap second will be required every 0.8 years = 9 months on average.
      Around year 2200, so after 300 years, each day is now 5.1 ms longer so a whole year is 365*3.4ms = 1.86s longer. A leap second will be required every 0.53 years = 6 months on average. ...
      Around year 2900, so after 1000 years, each day is now 17ms longer so a whole year is 365*17ms = 6.2s longer. A leap second will be required every 0.16 years = 2 months on average.

      There is of course no easy solution to that problem. Ideally, the second itself should be redefined regularly according to the day length.

    7. Re:Investment oportunity by geantvert · · Score: 1

      UTC sucks. I am going to switch all my computers to TAI

    8. Re:Investment oportunity by jdschulteis · · Score: 1

      At some point the earth will stop spinning.

      The one who will build a forecast model will know which side of the earth will be .... "sunny way up".

      Appropriate investment decisions can be made to purchase a land in the twilight zone, where is not too hot and not too cold.

      Some sources say, that earth is slowing down 1.7 milliseconds every 100 years. However the last leap second adjustment took place in 2012, http://en.wikipedia.org/wiki/L...

      Anybody know a quick and dirty way, a good formula, that would tell us when the earth will really stop rotating?

      The Earth will likely still be spinning when the Sun becomes a red giant, boils away the atmosphere and oceans and turns everything all melty, so the real (long-term!) investment deal is in O'Neill colonies.

  18. International Atomic Time by Anonymous Coward · · Score: 0

    At last the french did something right.

  19. TAI by GuldKalle · · Score: 1

    You could use Atomic time, which is basically UTC but without leap seconds.

    --
    What?
    1. Re:TAI by Anonymous Coward · · Score: 0

      Yip and just like we use UTC with a database to handle leap-years, dates that have been removed from history, and daylight saving time. You use a database from TAI to local time which includes when to add and remove leap seconds.

      Sadly Posix actually requires gettimeofday() to be UTC and has no solution of leap seconds (often the last hour of the day gets stretched or compressed, or the last second is repeated/removed).

      The Linux kernel is internally getting their clocks running at TAI, and user space APIs to retrieve TAI are being added.

  20. Re:Earth not _turning_ slower, but already is slow by Archangel+Michael · · Score: 1

    Every large earthquake changes the rotation speed. The big 8.x one a few years ago, the one with the Tsunami, that one significantly changed rotation.

    --
    Agent K: A *person* is smart. People are dumb, stupid, panicky animals, and you know it.
  21. This is what's wrong with "renewable" energy by ScentCone · · Score: 5, Funny

    First, you've got all those new solar panels absorbing photons from the sun, but only in one direction, and then you've got all of those wind farms and tidal hydro plants adding friction to things. Of course the earth is being slowed down. Every time some do-gooder plants a tree, what do you think happens? More friction. Friction slows down the planet and causes heat. Check it for yourself - try walking briskly to the fridge and back, and then try shuffling your feet on the carpet as you do the same. Heat! Slowing down! Exactly like what happens when the atmosphere has to slide over something that's in the way, like a rainforest. No matter how many coal-bearing mountains we smooth out to help with this problem, the infestation of "tiny houses" clustered around hipster-friendly towns just slows the air back down again.

    --
    Don't disappoint your bird dog. Go to the range.
    1. Re:This is what's wrong with "renewable" energy by Anonymous Coward · · Score: 0

      Sadly, someone is bound to take your post seriously.

  22. Easy peasy (lemon-squeezy) by fahrbot-bot · · Score: 1

    Is there a better way of dealing with the need for leap seconds?

    Decrease the radius of the moon's orbit.

    --
    It must have been something you assimilated. . . .
  23. time running backwards? by X10 · · Score: 1

    Will my server have "time running backwards" errors tonight? If so, I'll have problems with dovecot mail tomorrow.

    --
    no, I don't have a sig
  24. curious AND lazy... by Anonymous Coward · · Score: 0

    how much energy are we talking here?

  25. Worked in the cartoons by Tablizer · · Score: 1

    How about everybody just run the same direction for a few minutes to speed Earth back up?

    1. Re:Worked in the cartoons by Russ1642 · · Score: 1

      XKCD has it covered: https://what-if.xkcd.com/26/

  26. Re:Earth not _turning_ slower, but already is slow by gclef · · Score: 4, Informative

    No, the Earth really is slowing down very, very gradually. The tidal forces from the moon is slowly leeching off rotational energy from the Earch (as heat). See here: http://en.wikipedia.org/wiki/T...

  27. Re:Earth not _turning_ slower, but already is slow by gclef · · Score: 2

    Note to self: get more sleep before commenting....it's losing rotational energy to pushing the moon farther away. Gah.

  28. Mario Kart by geantvert · · Score: 1

    61s in a minute! I will definitely try to beat my best laptime on Mario Kart Wii.

    1. Re:Mario Kart by geantvert · · Score: 1

      or maybe I shall pay a visit to the closest nuclear power plant to see it explode. I was so frustrated at Y2K

  29. "Is there... by Minwee · · Score: 4, Informative

    ...a better way of dealing with the need for leap seconds?"

    Well... It could be worse. The last time we let the clocks go off we lost almost two weeks trying to fix it.

    Let's just keep up with the leap seconds so that nobody has to cancel Christmas again.

  30. Fix NTP by amorsen · · Score: 4, Interesting

    The main problem is the wrong handling of UTC by NTP and Unix.

    NTP is simply on the wrong time system. It is a system which is designed to accurately keep a monotonous steady time shared among millions of systems spread across time zones. It does not have any sensible way of dealing with the fact that some systems want to suddenly add a second or subtract one, just like it cannot deal with time zones or Mayan calendars. Those are simply outside its problem domain. Luckily the fix is simple: Stop handling leap seconds at all in NTP, just keep counting seconds. If you must handle it in NTP for those client systems too primitive to do it themselves, do it by transmitting the current offset between NTP time and UTC. The best solution would be to define NTP time to be TAI of course, but it will likely have to be TAI+offset to handle backwards compatibility.

    Unix again does it wrong by keeping system time in UTC rather than TAI. UTC is useful for humans but difficult for machines, it should be handled by the human interface libraries, just like time zones. Kernel time should be TAI of course. When leap seconds are inserted, systems must be updated, but that is not particularly harder than keeping the time zone files up-to-date is already. Of course it would be a lot easier if the astronomers would let us know a few years in advance rather than six months, but then the offset between TAI and UTC could exceed 0.9 seconds, and as we all know that would bring Ragnarok.

    GNU systems even have sets of time zones for precisely this reason: "POSIX" and "Right". Unfortunately it is not possible to use the "Right" time zones with current NTP.

    --
    Finally! A year of moderation! Ready for 2019?
    1. Re:Fix NTP by Guy+Harris · · Score: 2

      Unix again does it wrong by keeping system time in UTC rather than TAI.

      Actually, that's not what POSIX does, for any definition of "keeping system time in UTC" corresponding to the ITU-R specification, as the POSIX definition of "seconds since the Epoch" and its mapping to a struct tm doesn't allow the seconds value to be 60, which it will be during a positive leap second.

      I.e., it's even more wrong - a POSIX-compliant time_t isn't something that corresponds to TAI (as it doesn't tick forward by 1 every second of elapsed time) and you can't generate valid UTC labels (YYYY-MM-DD HH:MM:SS) from it.

      UTC is useful for humans

      ...but I suspect few clocks used by humans give a local time corresponding to UTC - most of the digital ones won't show "60" in the seconds section one second after June 30, 2015 at 23:59:59 UTC, and I don't know what the right thing to do for the second hand on an analog clock would be (for an analog clock without a second hand, presumably the minute hand should move two seconds after June 30, 2015 23:59:59 UTC).

      but difficult for machines, it should be handled by the human interface libraries, just like time zones. Kernel time should be TAI of course.

      I.e., "seconds since the Epoch" should actually be a count of the number of seconds that have elapsed since the Epoch, rather than being, well, what it is.

      When leap seconds are inserted, systems must be updated,

      ...and whatever data structures are used to keep tract of future scheduled events might have to be updated to reflect that, for example, July 1, 2015, 00:00:00 UTC is going to be one more second later than was expected at the time an event was scheduled for that date and time.

      However, having system time tick ahead one second every second means that events scheduled to occur N seconds from now, rather than scheduled to occur at YYYY-MM-DD HH:MM:SS UTC, won't have their time messed up by leap seconds; it's not as if the POSIX solution doesn't screw up anything.

      but that is not particularly harder than keeping the time zone files up-to-date is already.

      Especially given that leap seconds are part of the Olson^WIANA time zone source files.

    2. Re:Fix NTP by amorsen · · Score: 1

      Yes you are right, I had forgotten just how broken POSIX time is. Completely unfixable.

      Which is stupid, because struct tm actually supports leap seconds and even (despite them not being possible) double leap seconds.

      ...and whatever data structures are used to keep tract of future scheduled events might have to be updated to reflect that, for example, July 1, 2015, 00:00:00 UTC is going to be one more second later than was expected at the time an event was scheduled for that date and time.

      This bit you already have to handle due to daylight savings and time zone changes. If the user inputs a local date and time for a particular event, it is NOT valid to convert and store that as seconds after the epoch. That conversion can change anytime.

      --
      Finally! A year of moderation! Ready for 2019?
    3. Re:Fix NTP by Anonymous Coward · · Score: 0

      Of course it would be a lot easier if the astronomers would let us know a few years in advance rather than six months, but then the offset between TAI and UTC could exceed 0.9 seconds, and as we all know that would bring Ragnarok.

      Suddenly I want there to be a music festival called "Ragnarock"!

    4. Re:Fix NTP by Guy+Harris · · Score: 2

      Yes you are right, I had forgotten just how broken POSIX time is. Completely unfixable.

      Which is stupid, because struct tm actually supports leap seconds and even (despite them not being possible) double leap seconds.

      Thank Doug Gwyn for that one - he pushed that in ANSI C so that it could handle leap seconds.

      (And I pushed for leap-second-capable time in POSIX, but they didn't go for it.)

      ...and whatever data structures are used to keep tract of future scheduled events might have to be updated to reflect that, for example, July 1, 2015, 00:00:00 UTC is going to be one more second later than was expected at the time an event was scheduled for that date and time.

      This bit you already have to handle due to daylight savings and time zone changes. If the user inputs a local date and time for a particular event, it is NOT valid to convert and store that as seconds after the epoch. That conversion can change anytime.

      Yup, there's no guarantee that, if you calculate the number of seconds between "right now" and YYYY-MM-DD HH:MM:SS, whether that's local time or UTC, that will be the number of seconds in the future when YYYY-MM-DD HH:MM:SS will actually happen.

      I wonder how many calendar programs cope with that.

    5. Re:Fix NTP by camperdave · · Score: 1

      Of course it would be a lot easier if the astronomers would let us know a few years in advance rather than six months, but then the offset between TAI and UTC could exceed 0.9 seconds, and as we all know that would bring Ragnarok.

      Predicting earthquakes, land slides, massive storms, icebergs, and other events that alter the rate of rotation of the Earth by looking at the stars is a job for astrologers, not astronomers. Also, by definition, TAI and UTC differ by an integral number of seconds, and they currently differ by 35 seconds - far more than your battle inducing 0.9 second threshold.

      There are three important time systems in play here. TAI, UT1 and UTC. TAI is a count of SI seconds based on atomic clocks situated around the world. UT1 is the count of "solar" seconds based on the angle of the Sun to the Prime Meridian. Because it is based on the rotation of the Earth, which can vary for a multitude of reasons (earthquakes, icebergs, etc), UT1 "seconds" are variable in length, However, unlike TAI there will always be exactly 86400 seconds in a day.

      UTC is a compromise time scale. It uses SI seconds, like TAI, but there are occasional adjustments made so that it remains synchronized to within one second of UT1. These adjustments come in the form of leap seconds (or skip seconds).

      The International Earth Rotation and Reference Systems Service (IERS) has the responsibility of adjusting UTC. The last minute of the last day of the month can be lengthened or shortened by one second in order to keep UTC and UT1 in step. By agreement, the first preference is to adjust in June or December. The second preference is to adjust in March or September. So far, there has been no need to adjust using a skip second, or to adjust in any month other than June or December.

      --
      When our name is on the back of your car, we're behind you all the way!
    6. Re:Fix NTP by Anonymous Coward · · Score: 0

      What you are looking for is not NTP, but PTP (http://en.wikipedia.org/wiki/Precision_Time_Protocol).

    7. Re:Fix NTP by Anonymous Coward · · Score: 0

      I.e., "seconds since the Epoch" should actually be a count of the number of seconds that have elapsed since the Epoch, rather than being, well, what it is.

      Astronomer here. Yes, I dearly wish this were true. It would make my code so much simpler.

    8. Re:Fix NTP by jcdr · · Score: 1

      PTP is mainly designed to work well on LAN. While it can be used on WAN, there is currently no equivalent to the large quantity of open NTP servers on the internet. Thanks to the open NTP servers, NTP bring service comparable to GPS regarding time synchronization source, something that PTP is unable to do if you don't have access to particular master PTP node, usually connected to a GPS or a NTP server.

      Maybe one day PTP will have a range of open master node on the internet, but AFAIK this actually not the case. It should be noted that when used over WAN, PTP is not better that NTP from the precision point of view.

      Finally PTP don't solve all issues. To have a reliable actual time and time processing capabilities everywhere around the world, NTP, GPS and PTP should be extended to broadcast the updated historic leap second table and the updated timezone database, as well as the UT1 frequency offset. With all the additional information, any devices could use the right time for his purpose.

    9. Re:Fix NTP by amorsen · · Score: 1

      I meant UT1 instead of TAI in that sentence. Sorry.

      I do not care if they predict it in advance. Just issue a leap second in 5 years time if it looks like it will be necessary within 6 months. Yes, UT1 will drift away from UTC by more than 0.9 second, but who cares? It will never be far enough away for anyone other than astronomers to notice, and astronomers use UT1 anyway.

      The best solution, of course, is to simply kick the astronomers out of civil timekeeping entirely. Bring them in for a consultation every thousand years and change time zones then, if necessary.

      --
      Finally! A year of moderation! Ready for 2019?
    10. Re:Fix NTP by camperdave · · Score: 1

      Again with the Astronomers? Astronomers have nothing to do with time zones. Time zones are political, not scientific. So is UTC when it comes down to it. However, it was not designed the way it was on a whim. So we just need to buck up and switch computers to TAI.

      --
      When our name is on the back of your car, we're behind you all the way!
    11. Re:Fix NTP by amorsen · · Score: 1

      Time zones are fine. Astronomers are not to blame for those. Astronomers ARE to blame for the mess that is UTC. Give them UTC and UT1, and move all civil time to TAI with time zones. Change time zones when the offset gets too large (which is pretty large, considering that China does just fine in a single time zone -- they somehow survive that the sun is not precisely above them at 12.)

      --
      Finally! A year of moderation! Ready for 2019?
  31. Re:Earth not _turning_ slower, but already is slow by Tetetrasaurus · · Score: 0

    Earth is slowing down, but that's not what this leap second is for, it's for the speed that the Earth has been turning already. That's why it's applied at regular intervals, but doesn't get larger. If it was applied at regular intervals, but got larger and larger, or was applied at smaller and smaller intervals, then it would be because Earth was slowing down.

  32. TAI if you need it (was Re:Is there a better way?) by Etcetera · · Score: 2

    If you're doing calculations on time using intervals, and one second matters to you, you should be using a raw number instead of calculating the "23:59:59" yourself. If the UTC conversion is too much, use TAI instead and be done with it:

    From http://en.wikipedia.org/wiki/International_Atomic_Time:

    International Atomic Time (TAI, from the French name Temps atomique international[1]) is a high-precision atomic coordinate time standard based on the notional passage of proper time on Earth's geoid.[2] It is the basis for Coordinated Universal Time (UTC), which is used for civil timekeeping all over the Earth's surface, and for Terrestrial Time, which is used for astronomical calculations.

  33. Re:Ok, so I'm temporally challenged ... by Russ1642 · · Score: 2

    23:59:59 is normally followed by 00:00:00 (or 24:00:00). In this case it goes 23:59:59, 23:59:60, and then 00:00:00. One second gets added at the end of the day.

  34. KISS by sjames · · Score: 1

    For the vast majority of cases, leap seconds shouldn't be a problem (or even important). Just note that the clock is wrong and use the built in OS functionality to adjust the clock. (in other words, on a well maintained server, do nothing special)

    For things that need a constant time base but not a persistent one, just count the ticks and call it good.

    For the really hard cases, we probably need a time base that is simply the number of seconds from a defined base. Then maintain a simple table in the public domain containing the correction to the other time bases. Just select the greatest entry that is <= the current time and apply the correction to derive the adjustable time value.

  35. oblig Simpson's joke: by Anonymous Coward · · Score: 1

    "precisely timed money transactions could go astray"

    oh, won't someone PLEASE think of the frontru..., er, I mean "high frequency traders providing liquidity"!!!

  36. Re:Earth not _turning_ slower, but already is slow by Anonymous Coward · · Score: 0

    not as heat, its transferring into orbital velocity of the moon, which is why the moon is slowly moving away from the Earth as its orbital velocity increases.

  37. Re:Ok, so I'm temporally challenged ... by Sowelu · · Score: 1

    Making the generous assumption that this is a brain slip and not a troll, seconds don't normally go up to 60. They stay in the range of 0..59, which means there's sixty of them. Counting from 0 to 60, including the 0, gives you 61 seconds in that minute.

  38. Re:Earth not _turning_ slower, but already is slow by Anonymous Coward · · Score: 0

    That's why it's applied at regular intervals

    That's not true, as many have pointed out already.

  39. Re:Earth not _turning_ slower, but already is slow by Anonymous Coward · · Score: 0

    Earth is slowing down, but that's not what this leap second is for, it's for the speed that the Earth has been turning already. That's why it's applied at regular intervals, but doesn't get larger. If it was applied at regular intervals, but got larger and larger, or was applied at smaller and smaller intervals, then it would be because Earth was slowing down.

    It's not applied at regular intervals. FTFA: "From 1972 to 1979, at least one second was added every year. Leap seconds were added six times throughout the 1980s. But there will only have been four leap seconds added since 1999. "

    It is applied based on committee decision to add them based on ongoing measurements of the earth's rotation, and therefore cannot be easily predicted.

  40. Headline is repetitive and tautological by wonkey_monkey · · Score: 3, Funny

    Extra Leap Second To Be Added To Clocks On June 30

    It's not an extra leap second, it's just a leap second. They're already "extra" by definition.

    Yours sincerely,

    Captain Pedantic

    --
    systemd is Roko's Basilisk.
    1. Re:Headline is repetitive and tautological by Anonymous Coward · · Score: 0

      But it is extra to the one that was added in 2012, and the ones before that.

  41. EVEN LINUX?!? by Anonymous Coward · · Score: 0

    Heaven forfend! I was under the impression Linux is the alpha & omega of operating systems...or I would be if I was some weak minded nerd.

    1. Re:EVEN LINUX?!? by Anonymous Coward · · Score: 0

      The last time a leap second was added, in 2012, a number of websites, Java and even Linux experienced some troubles.

      Yeah, that was a nice bit of spin doctoring by the submitter there. Try dealing with leap seconds in any Microsoft product (especially .NET's DateTime class and SQL Server's native datetime and datetime2 types) and see how well you fare. Leap seconds must be considered obscure enough that nothing deals well with them except for scientific and navigation software.

  42. Leap seconds work just fine by dwheeler · · Score: 1

    Leap seconds work perfectly well for most situations. If you need precision monotonically-increasing seconds, use TAI time (or "GPS time", which is at a fixed offset from TAI). Leap seconds keep atomic clocks and the real world reasonably synchronized; any other approach will have its own problems.

    --
    - David A. Wheeler (see my Secure Programming HOWTO)
  43. In my city... by Anonymous Coward · · Score: 0

    "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."

  44. The Problem with Time Zones by chuckugly · · Score: 1

    Explained here.

  45. Re:Earth not _turning_ slower, but already is slow by TFlan91 · · Score: 2

    This post right here is why we need a "Post Inaccurate" option for modding.

  46. Test! Test! Test! by Anonymous Coward · · Score: 0

    Test those boundary conditions! It's just another infrequent event that must be planned for.

    Just like leap years, leap seconds are part of the spec. Some Februaries have 29 days just like how the last minute of December 31 and June 30 can have 61 seconds. The only difference is that there's no formula for calculating when a leap second will happen, but they are announced well in advance and the NTP protocol notifies when a leap second is upcoming.

    Expand your test suites to include minutes with seconds numbered 0 to 60. If your application is time critical, make sure you're checking for that NTP leap second flag on December 31 and on June 30.

  47. Better way to solve that problem by bickerdyke · · Score: 1

    Choose your timescale wisely. Use UTC where it's important that "time" matches some random astronomic phenomenas, and use TAI where consistency matters.

    --
    bickerdyke
  48. F*#K'in Global Warming by Anonymous Coward · · Score: 0

    Computer models suggests that in 20-25 years, Climate Change could cause time to slow to up to half of what it is now making days 48 hours instead of the 24 hour day we are used to. Hold on, it gets better, while simultaneously slowing the Earth's spin causing another 8 hours to the day.

  49. F#ck'in Global Warming by Anonymous Coward · · Score: 0

    Computer models suggests that in 20-25 years, Climate Change could cause time to slow to up to half of what it is now making days 48 hours instead of the 24 hour day we are used to. Hold on, it gets better, while simultaneously slowing the Earth's spin causing another 8 hours to the day.

  50. Re:Earth not _turning_ slower, but already is slow by camperdave · · Score: 1

    There are regular intervals at which leap seconds *CAN* be applied (The last day of March, June, September and December may be one second longer or shorter than other days). However, leap seconds and skip seconds are not always applied. They are irregular because the turning of the Earth is irregular.

    --
    When our name is on the back of your car, we're behind you all the way!
  51. An even better way . . . by Anonymous Coward · · Score: 0

    use the fucking metric system!!

    1. Re:An even better way . . . by kwbauer · · Score: 1

      Uh, you mean the system of telling time that is based on seconds, minutes, hours, etc.?

  52. Re:Ok, so I'm temporally challenged ... by camperdave · · Score: 1

    The protocol allows for a "skip second" as well as a leap second. The clock could legitimately go 23:59:57, 23:59:58, and then 00:00:00.

    --
    When our name is on the back of your car, we're behind you all the way!
  53. Re:Earth not _turning_ slower, but already is slow by ihtoit · · Score: 1

    uh... it is slowing down, by an average of about a millisecond a year, due to tidal friction against the gravitational pull of the Moon.

    --
    Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
  54. Do you want better way, or easy way? by Anonymous Coward · · Score: 0

    Easy way: You can pull the network cable or power off during that time.
    I would be joking ... except a shutdown is how more than a few people to get through the DST fallback hour.

  55. Re:Earth not _turning_ slower, but already is slow by Livius · · Score: 1

    the problem is not that Earth is slowing down, but that the speed is slower

    Try thinking that through a little more carefully.

  56. Re:Earth not _turning_ slower, but already is slow by Anonymous Coward · · Score: 0

    And, as was mentioned above in a comment, tectonic forces can affect the Earth's rotational velocity. Our moon is the number one culprit, but other celestial objects also have small effects that will add up over longer periods of time.

  57. Pope Gregory XIII has you beat by trout007 · · Score: 1

    He skipped 10 days to make the calendar line up with the equinox.

    --
    I love Jesus, except for his foreign policy.
  58. Re:Ok, so I'm temporally challenged ... by Russ1642 · · Score: 1

    I wonder how many programmers are going to complain that they only coded for leap seconds and never bothered allowing for the reverse. It'll happen one day.

  59. Re:Earth not _turning_ slower, but already is slow by floateyedumpi · · Score: 2

    Most of the depleting rotational energy of the Earth goes into the orbital energy of the moon, which means the moon will be boosted in its orbit and recede from Earth until the Earth is slowed down enough that the same side of the Earth faces the moon as it orbits ("tidally locked"). Which, by the way, is why the man in the moon always faces us (i.e. tidal locking happened long ago on the moon). At that point, a day and Earth an an orbit on the Moon would both last about 47 days. Estimates for when this would occur are around 50 billion years, by which time the sun will have swollen up in its death throes and consumed the Earth. There is some heat generated due to friction from tides and distortions of the Earth's crust, but the rotational-orbital exchange is much more significant.

  60. Slowing DOWN????? by Anonymous Coward · · Score: 0

    So who is looking into this Slowing Down thing?

    You know what that means, don't ya? It means longer days, more exposure to UV radiation, more cancer deaths, more drought, less food, world wide conflagrations!!!!

    We need to tax people traveling East to West. They are clearly responsible for taking some momentum away.

    Tall buildings! We need to get rid of tall buildings because when the wind hits them from the wrong direction, it also slows the earth down. From now on, no more buildings above 1 story.

    We need a U.N. Committee to look into Anthropogenic Slowing Down!!!

    1. Re:Slowing DOWN????? by ls671 · · Score: 1

      > So, what do you intend to do during that extra second added to that day? Well, you may want to fix your systems.

      Nah, I am just going to going to set my watch during that extra second.

      --
      Everything I write is lies, read between the lines.
    2. Re: Slowing DOWN????? by Anonymous Coward · · Score: 0

      Woah you are fast... I am going to lose 10 seconds going from 01 around past 59 to 10.

    3. Re: Slowing DOWN????? by ls671 · · Score: 1

      1) be ready when your watch shows 00:00:00
      2) wait until it shows 00:00:01
      3) press button
      4) now watch shows 00:00:00

      elapsed time: 1 second

      did you ever own a watch?

      --
      Everything I write is lies, read between the lines.
    4. Re: Slowing DOWN????? by mwvdlee · · Score: 1

      Because all watches work exactly like your digital calculator watch?

      --
      Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
    5. Re: Slowing DOWN????? by Hognoxious · · Score: 1

      What button?

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  61. How many time zones? by Anonymous Coward · · Score: 0

    ELEVEN.

    (That's ridiculous. It's not even funny.)

  62. Re:Earth not _turning_ slower, but already is slow by camperdave · · Score: 1

    Addendum: The last minute of the last day of any month can be lengthened or shortened by one second. However, there is a first preference of June or December, and a second preference of March or September.

    --
    When our name is on the back of your car, we're behind you all the way!
  63. Re:Ok, so I'm temporally challenged ... by Anonymous Coward · · Score: 0

    Well, when you put it like that, the whole thing becomes blindingly obvious.

    Thank you :)

  64. Time to commit... by John+Guilt · · Score: 1

    ...a crime lasting less than one second---it legally won't exist. (Note: this is not at all true.) (It's based on a short New Zealand film I saw decades back in which a man is released because it turned out that when a relevant law were changed there were a gap between the new and old laws' domains, and his offence was in the gap. He and a mate went on to hijack a bus and charge people extra to take them exactly where they went, which proceeds they wanted to use to start a mushroom farm.)

  65. Re:Ok, so I'm temporally challenged ... by Anonymous Coward · · Score: 0

    Would 23:59:59 , 23:59:60 , 24:00:00 be possible?

    To those who thinks it would be better to use TAI... not going to happen. BIPM actually considers surpressing TAI information. Time and Calender is Solar centric, not Cesium centric. On a sidenote, sometimes earth rotation speeds up which could lead to skipping a sec instead of adding one.

  66. Re:Ok, so I'm temporally challenged ... by Anonymous Coward · · Score: 0

    OpenSUSE has 61 sec minute when a leap sec is added.

  67. Beliebe by sharknado · · Score: 1

    Eject all Beliebers into space...lower mass = increased rotational velocity = no need for leap seconds.

  68. EOFY down under by Anonymous Coward · · Score: 0

    June 30 is the last day of the fiscal year in Australia; wonder if there will be any issues with our banking / financial systems?

  69. Perhaps you've heard of GPS by chromaexcursion · · Score: 1

    GPS doesn't directly need leap seconds, but it relies on astronomical calculations that do.
    I write software that deals with leap seconds. I don't write the stuff that actually calculates them, but I have to make sure not to break it. One of the mottos of the company I work for is "it is rocket science".
    A second is a small enough margin of error to be allowable. Most time systems are based on seconds, so that's the smallest reasonable choice.
    For the jokers. An error of 1 minute would be 1 nautical mile (almost 2 km). Which is 1 minute of latitude (60 minutes in a degree). Funny how minute and nautical mile are the same.
    I'm an astro geek, and a sailor, don't piss in my yard.

  70. UTC has become a joke by Anonymous Coward · · Score: 0

    We move time forward or backwards an hour during the summer, yet worry about a second? No, its arbitrary.

    Also the sun does not sit at that position at noon FOR EVEN A WHOLE TIME ZONE. We use to have local times local to each village to keep noon, yet we standardized at hourly intervals across a time zone. Again arbitrary, and the timezones are arbitrary too, islands and countries decide to be in the wrong zone for political reasons. e.g. most of europe is on CET and it has nothing to do with keeping noon as the suns high point in the sky!

    This change makes no sense UTC has become a joke.

  71. Global Slowing/Rotation Change by Anonymous Coward · · Score: 0

    It must be stopped for the good of the children

  72. Re:Ok, so I'm temporally challenged ... by Anonymous Coward · · Score: 0

    60 seconds = 61 servings

  73. Evil conspiracy? by Anonymous Coward · · Score: 0

    Is this an evil conspiracy by physicists to keep all the good time to themselves while we get leeper time?

  74. The only good solution... by Anonymous Coward · · Score: 0

    ... is to install huge rockes on earth and make it spin faster!

    All this bullshit about tweaking the time is just ugly hacking!

  75. Extra time by kevingolding2001 · · Score: 1

    So, what do you intend to do during that extra second added to that day?

    Well there's this novel I've been intending to write but haven't got around to it yet.

  76. See the invisible by Talderas · · Score: 1

    Row row fight the power?

    --
    "Lack of speed can be overcome. In the worst case by patience." --Znork
  77. Bloody EU, always meddling. by Hognoxious · · Score: 2

    England told him to bugger off.  Hence, on a unix system:

    $ cal 9 1752
       September 1752
    Su Mo Tu We Th Fr Sa
           1  2 14 15 16
    17 18 19 20 21 22 23
    24 25 26 27 28 29 30

       

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  78. What about syncing dynamically? by martinfb · · Score: 1

    There are a few thoughts along this line:
    - Base time on a basic cosmological constant - perhaps the period of a basic elemental or physical constant.
    Then, we regularly calculate the change in Earth's rotation and factor that into the daily calcs for sunrise
    and sunset, and live accordingly.
    - Screw ANY constant. Base 'regular' time on a percentage of actual Earth rotation, constantly updating
    common cronographs (watches), dividing the day up into set portions. Perhaps mid-day is when the sun
    is directly overhead (like it theoretically is now). Thus, mid-day -to- mid-day period changes at the
    current rate of 1/1000 of an hour. When the rate changes, as time will gradually do (barring a
    catastrophic event), lives can also gradually follow the change.

    --


    Self-importance and self-indulgence is the root of ALL evil.
  79. What about syncing dynamically? by martinfb · · Score: 1

    We would likely need to keep 2 clocks: One based on a constant period, and another based on events related to Earth's rotation.

    --


    Self-importance and self-indulgence is the root of ALL evil.
  80. Don't Program to False Assumptions by Anonymous Coward · · Score: 0

    The better solution, is to actually have programmers deal with these conditions better; and to actually learn something about the domain.
    How many issues do we have with DST?
    How many issues do we have the 3 years of 7 where Dec 31 is in the following year (ISO Year Week 1); e.g. twitter this year
    How many issues do we have when Timezone changes happen (many times a year; some even moved from -12 to + 14, so date went Dec 30, Jan 1; with no Dec 31 that year.

    There should never be an assumption that "seconds" will only be a value between 0 and 59 inclusive. It can, and has taken the value 60. This is a known quantity, and should be handled. Much like you can't assume a month is 30 days, or a year 365 (leap year [365], timezone change [364]). You can't assume a day is 86400 seconds. That assumption has been false for many years now.

    And for systems that store the date as an offset (linux, being stored as seconds since epoch, rather than BCD), that just means updating libraries that convert unix-timestamp to civil-time as needed, which is much less often than the timezone database.
    Some libraries will assume 60s a minute, and thus their times will always be increasingly off by a few seconds as time goes on.
    Some libraries take into account the leap seconds, and thus Date Parsing to a Unix Timestamp will be off, or duplicated depending on implementation.

    People need to step up and not program in that neat idealistic view.
    In 2010, users in one timezone that switched from -12 to +14, only had a 364 day year. As they were missing Dec 31 that year.

    For systems that don't their time-functions will be one second off from those that do. Which is currently the case that happens with non-updated system-timeone databases.

  81. tyson by martinfb · · Score: 1

    Cool! How long would it take to get there? ;-)

    --


    Self-importance and self-indulgence is the root of ALL evil.
  82. Re:Earth not _turning_ slower, but already is slow by Tetetrasaurus · · Score: 0

    Leap seconds were applied yearly in the 70's mostly at the same exact date, as I said. However since 2000 we've only had three leap seconds at random times like you said. This actually implies that the Earth is either speeding up, which we know is not the case, or the rate of slowing of rotation has gone down. Interesting.

  83. How to eliminate the need for leap seconds by ck512ax · · Score: 1

    Strap some big rockets on the earth around the equator and let them speed it up. Bob