The Register Home Page

back to article Time lords prepare to kick leap seconds into the next millennium

The prospect of a negative leap second – combined with decades of irritation over leap seconds generally – looks set to inspire a bit of global procrastination among international timekeepers. Next month, the General Conference on Weights and Measures is set to vote on effectively calling time on leap seconds. A draft resolution …

  1. Androgynous Cupboard Silver badge

    Offbeat?

    I see what you did there...

  2. Dizzy Dwarf

    Every time the clocks change

    I do feel for the poor bastard that works at Stonehenge.

    1. Anonymous Coward
      Anonymous Coward

      Re: Every time the clocks change

      Well, as a clock/calendar, Stonehenge was last reset by the Victorians. We only actually have their word that some of the stones of Stonehenge are actually in the right places.....

      1. Zack Mollusc Silver badge

        Re: Every time the clocks change

        It is common knowledge that space aliens built the pyramids, but did they also do stonehenge? If so, the most likely assumption is that the 'victorians' you mention may well have been immortal space alien caretakers.

        1. Antony Shepherd

          Re: Every time the clocks change

          No-one knows who they were,

          Or what they were doing ,

          But their legacy remains,

          hewed Into the living rock of Stone'enge....

          (cue dancing dwarfs and Stonehenge model)

      2. Victorjoye531

        Re: Every time the clocks change

        Honestly, given how much the Victorians loved "restoring" ancient sites with pure guesswork and enthusiasm, it wouldn't surprise me at all if half of Stonehenge is just a 19th-century DIY project. It's funny to think everyone builds whole theories around stone alignments that might just be where some Victorian crew felt like setting up a crane.

        1. DoctorPaul Bronze badge

          Re: Every time the clocks change

          Don't diss the archeologists! I've watched enough episodes of Time Team to know that they would have no trouble at all telling the difference. Clue - it's not the hole, it's what was in it.

          1. that one in the corner Silver badge

            Re: Every time the clocks change

            Hang on, didn't the archaeologists recently* find a whole ring of holes around the outside of the henge and then have to figure out what they'd been used for? "Probably wooden poles...".

            Obviously, they were supports for the Victorian canvas tent with "Roll up! Roll up!" painted on the side.

            * in archaeological terms, at least

            1. The Oncoming Scorn Silver badge
              Alien

              Re: Every time the clocks change

              I'm a Time Lord, I point & laugh at archaeologists.

        2. J.G.Harston Silver badge

          Re: Every time the clocks change

          On topic for current news, there's suspicions that Victorian restorers added the arrow in Harold's eye on the Bayeux Tapestry Embroidery

          1. Antron Argaiv Silver badge
            Thumb Up

            Re: Every time the clocks change

            They did an entire copy.

            https://www.readingmuseum.org.uk/bayeux-tapestry

            1. Phil O'Sophical Silver badge

              Re: Every time the clocks change

              I was really surprised that no-one from the museum got in touch with the likes of the BBC when all the fuss over the loan was happening. I've seen both the 'real' one and the Reading version, and they are both impressive. It's well worth taking a look in the Reading museum (which also has (had?) a small exhibit about the history of DEC in Reading).

              1. Yet Another Anonymous coward Silver badge

                Re: Every time the clocks change

                >a small exhibit about the history of DEC in Reading

                As a tapestry?

  3. alain williams Silver badge

    The result is that when there is a correction ...

    the problems that it causes will be huge as systems will have long ago ceased to be coded to cope with leap-times.

    1. Kurgan Silver badge

      Re: The result is that when there is a correction ...

      But this will not be our problem, so I'm fine with it.

    2. DS999 Silver badge

      Re: The result is that when there is a correction ...

      That shouldn't matter to us because 1000 years from now the Earth will be inhabited by AI robots walking on the piles of skulls of the human race they almost completely extinguished. Maybe the leap hour will be what finally turns the tide and allows a scrappy band of our descendants to finally extinguish Zucknet.

      1. LybsterRoy Silver badge

        Re: The result is that when there is a correction ...

        You have watched to many Terminator movies

        1. Anonymous Coward
          Anonymous Coward

          Re: The result is that when there is a correction ...

          The best option is to stop after two.

          1. 42656e4d203239

            Re: The result is that when there is a correction ...

            >>The best option is to stop after two.

            Some would say T1 is optional...

        2. HelpfulJohn

          Re: The result is that when there is a correction ...

          I politely disagree. He hasn't watched *enough* "Terminator* movies and he's missed the point of all of them.

          Sarah always wins. Okay, that may be a spoiler, but either Sarah or the scion of Sarah *always* win.

          It's a "Hollywood" thing. USAliens *never* get stomped flat and extinctified. Not permanently.

          I think that trope started with the bugs in Mr. Wells's little documentary helping London survive. :)

      2. hammarbtyp

        Re: The result is that when there is a correction ...

        It would be highly ironic if all you needed to stop a terminator was to set its internal clock back 1 sec.

        Almost as much if they all stopped working on 3:14:08 UTC on 19 January 2038....

        1. that one in the corner Silver badge

          Re: The result is that when there is a correction ...

          They don't stop working in 2038, they just rollover and go negative: they rebuild human civilization for us and tend it lovingly.

          Until the fateful day, 68 years later, when all the "paranoid ramblings of those fools in the old folks home" suddenly come true.

          With enough careful maintenance of the moving parts we'll be repeating history at a rate Toynbee would boggle at.

        2. HelpfulJohn

          Re: The result is that when there is a correction ...

          ... yes, but isn't 2038 far too late for it to matter?

          "Judgement Day" is, in every iteration, a long way before Unix Calendar Doomsday, so it doesn't make any difference to humans whether the machines survive it. There wouldn't be any humans around to care.

          Yes, I need to get out more.

    3. Francis Boyle

      No problem

      By then the Time Lords will be actual Time Lords so sorting it out will be super easy.

      1. Antron Argaiv Silver badge

        Re: No problem

        They'll just whip out their Sonic Screwdrivers and put it all right.

        1. hammarbtyp

          Re: No problem

          That's what she said...

          1. The Oncoming Scorn Silver badge

            Re: No problem

            River always says that!

    4. HelpfulJohn

      Re: The result is that when there is a correction ...

      who cares? Really?

      Either the Dream Of Stars will be fully realised by then, with Man and his children being spread over the rocks orbitig at least a few thousand of the nearest stars, or the species will be extinct and its current technologies will be gone forever. Either way, setting "UTC" to the revolutions of a planet long forgotten and lost in the drifts of space and time would be impossible and, if attempted bt a Historical Society, considered to be of no value to anyone.

      Long term - meaning more than a century - this is an issue of little relevance to anyone or anything.

      The Time Controllers have it right.

  4. Jou (Mxyzptlk) Silver badge

    Sounds plausible...

    In short: "We better give a shit about leap seconds, it is already bad enough".

    Yep, I agree. Just calculation the correct time has gone so complex that you always have to rely on the OS to provide you the right UTC an local time. Don't even try to code that stuff yourself.

    Luckily all OS-es expose enough functinality to make those calculations, including the stupid DST, for you. And the DST crap even constantly changes, since each year some country on earth decides to move those dates around instead of a fixed "logic".

    When I was Windows Insider I was surprised how often changes to those time have been in the changelog. Went to "Windows Outsider" shortly after the release of Windows 11 21H2, when MS broke access to local Shadowcopies in April or May 2022... for more than two years...

    1. Bebu sa Ware Silver badge
      Windows

      Re: Sounds plausible...

      When the twice yearly DST switches were due, I alway made a silent benediction to Arthur David Olsen.

      Doubly so after I learnt from a newsgroup that SGI Irix had zoneinfo support in its std library (just no zonefiles or binaries.)

      The compiled zonefiles, while binary, are portable between systems like terminfo. So copying the zonefiles from a Decunix or Solaris to /usr/lib/zoneinfo and export TZ=:Australia/Sydney — beats recasting every year, incantations like TZ=GMT0BST,M3.5.0/1,M10.5.0/2.

      HPUX 10.20 still required an equally daft TZ variable — I think set set from tztab.

      (Hard lesson learnt: restart cron after changing zonefiles or time zone.)

      1. Jou (Mxyzptlk) Silver badge

        Re: Sounds plausible...

        > TZ=GMT0BST,M3.5.0/1,M10.5.0/2

        This reads like: If that is a typo, and you have no backspace, you will fire an atomic warhead from your nuclear submarine?

        1. jake Silver badge

          Re: Sounds plausible...

          "and you have no backspace"

          ^H

          1. Jou (Mxyzptlk) Silver badge

            Re: Sounds plausible...

            That is what you see on the console, but is not executed the way you expect. Go back to older computers, older unix. No cursor key, no backspace, including no CTRL+H (or Modifier-H)...

            1. Peter Gathercole Silver badge

              Re: Sounds plausible...

              On computers that old, you would remember that delete was "#" (and killing a whole line was "@"). When you were using UNIX on a teletype or other hard copy terminal, backspace would end up with over-typed characters that you would not be able to read. So they opted for printable characters.

              For nostalgia, I've recently been playing (again) with UNIX edition 7 on my PiDP11. Setting the defaults for erase and kill on logon (not by stty in .profile) was surprisingly difficult in the Bell. Labs. code. Turns out, when I was working with edition 7 in the late '70s and early '80s, we were actually using modified init, getty and stty commands (as well as the line speed setting code) as documented in paper copies of the modified man pages in the manuals that I kept, which are attributed to Rutherford Labs. in the UK, which also included a number of modifications allowing edition 7 to run on an 11/34.

              If anybody still has copies of those mods. I would be very interested in a copy. I've looked, and although I've found references, I can't find anything specific on any sites I know to look at. I'm currently using some code extracted from BSD2.11 for the PDP/11 to achieve a similar effect, although the version of SimH in the PiDP11 bundle has some limitations on the DL11-E and DZ11 (for which Edition 7 only had untested code) simulations which make speed sensing difficult to implement. Also, would be interested in a copy of the Keele modifications (as I knew them) that moved the I/O buffers out of the kernel data space.

              I always find it amusing to flip through the early BSD termcap entries. There are some quite amusing comments about brain dead terminals, and what didn't work on them.

              1. Anonymous Coward
                Anonymous Coward

                Re: Sounds plausible...

                Upvoted but I still reckon you wear an anorak over a tanktop.

                1. Peter Gathercole Silver badge

                  Re: Sounds plausible...

                  No, no anorak or tanktop. Jeans, polo and jersey tops and nylon flight jackets are my comfortable clothes, but I do occasionally wear collard shirts and even slacks when I'm a bit more formal, sometimes even with ties. I do posses a few tops that resemble cardigans, though!

                  What I'm commenting on was my actual working life 45 years ago (when I may have worn the odd tank top), and it has remained in memory as a good point in my life that I would really rather be in than today. Sad, really, but work is winding down and I've not found anything better (that I am able to do given my infirmities) to replace it with yet.

              2. stiine Silver badge

                Re: Sounds plausible...

                Post a question to Dave Plummer's youtube channel and ask there. I know he has an old BSD running on his PDP-11.

                1. Peter Gathercole Silver badge

                  Re: Sounds plausible...

                  I/ve watched many of his videos. What he has is a PDP-11/44 with BSD running on it. I don't remember what process he used to get that running on his system, but what I'm trying to do is not getting BSD running (and there is a good BSD 2.11 canned package with working networking on the PDP collection online).

                  I actually like the videos posted by Usagi Electric. He's much more interested in the electronics, but once he had RSX-11 running on his PDP-11, he turned his attention away from the PDP-11, and to a mass spec. and a vector processor that he has attached.

                  What I'm trying to do is to re-create, as much as possible without real hardware, the first system I was sysadmin for. I did a lot of hacking around in the kernel on it (It was an unusual PDP-11/34a with 22-bit addressing bolted on by Systime, a UK based DEC reseller and system integrator), and I'm getting nostalgic in my old age.

              3. Old Used Programmer

                Re: Sounds plausible...

                If you come across a termcap entry for the Radio Shack Model 100, I wrote and submitted it because my wife had one.

                1. Peter Gathercole Silver badge

                  Re: Sounds plausible...

                  I've seen one in there. I was a bit intrigued, because the TRS model 100 is a computer, not a terminal (did it even have an RS-232 port?), and I wondered what emulation software was used. Did you just shunt the characters up and down, and let the built-in codes for the display do their thing?

                  1. Peter Gathercole Silver badge

                    Re: Sounds plausible...

                    Ah. I was thinking of the wrong model. The TRS 80 Model 100 was the portable with a modem built in. So it would have been able to connect. Still a little interested about the display command set. I'll do a bit of digging.

              4. Julz

                Hum

                Just tried to reply to this with "return~." and it killed my connection :)

              5. Phil O'Sophical Silver badge

                Re: Sounds plausible...

                I can't find anything specific on any sites I know to look at

                It may be an obvious suggestion, but have you asked on https://forum.vcfed.org/index.php?forums/dec/ ?

  5. Richard Tobin

    An alternative approach

    Instead of adjusting the clocks, let's build a system to adjust the earth's moment of inertia by transporting large quantities of sand between South Africa and the Sahara. I leave it to the rest of you to calculate the mass required.

    1. Bebu sa Ware Silver badge
      Coat

      Re: An alternative approach

      I blame Musk† and his Starlink sheningans — his LEO satellites dumping their angular moment on the Earth along the rest of their shit when they plummet back to Earth. (Like a spinning skater pulling her arms to her sides.)‡

      † Who wouldn't… ‡ Codswallop but see (†).

    2. richardcox13

      Re: An alternative approach

      XKCD just, albeit indirectly, has that covered https://xkcd.com/3291/

      1. VicMortimer Silver badge

        Re: An alternative approach

        Oh, XKCD covered it very directly.

        https://what-if.xkcd.com/26/

        1. user555

          Re: An alternative approach

          One assumes their ice age story, over what is only a few decades, is euphemistically referring to man-made global warming.

          1. TheWeetabix

            Re: An alternative approach

            How would you figure that? Honest question.

            1. user555

              Re: An alternative approach

              Just like their cartoon - https://what-if.xkcd.com/imgs/a/26/leap_mass_shift.png

              As the ice caps melt, the weight is lifted from the poles and evenly redistributed as water. With less ice weight on the poles the ground under the poles is free to rebound and thereby reform the mantle, sucking in the equatorial girth.

              One might also expect an increased rate of earthquakes and volcanism as a side effect.

              1. Anonymous Coward
                Anonymous Coward

                Re: An alternative approach

                Post-glacial rebound is why the island of Great Britain is rising in the North.

                Trying to catapult the Scots over into France (it's what they deserve, the lot of 'em! Have some garlic on your haggis, wee man).

                1. Antron Argaiv Silver badge

                  Re: An alternative approach

                  Back to Norway, surely? (and stop calling me Shirley)

                  My surname is Scottish/English, and I did one of theose DNA tests that showed the majority of my DNA is Norwegian. Apparenly, I'm descended from Viking invaders...

                  1. Yet Another Anonymous coward Silver badge

                    Re: An alternative approach

                    Doesn't that suggest that the hordes of invading Vikings 'pillaged' the local Scots maidens?

                    Didn't know they were that brave...,

                  2. The Oncoming Scorn Silver badge
                    Stop

                    Re: An alternative approach

                    Apparenly, I'm descended from Viking invaders...

                    Can you please stop invading my inbox selling Cruises.

                2. Yet Another Anonymous coward Silver badge

                  Re: An alternative approach

                  >Post-glacial rebound is why.... Britain is rising in the North.

                  I thought it was because of that Burnham chap?

    3. Jou (Mxyzptlk) Silver badge

      Re: An alternative approach

      We are still at melting the ice from the mountains. The land reorder project was more difficult and is postponed.

      1. stiine Silver badge
        Coffee/keyboard

        Re: An alternative approach

        I presume you mean V2 of the land reorder project because V1 is ongoing.

    4. JT_3K

      Re: An alternative approach

      Now I'm sat considering the impact of ~300 years* of various levels mining activities in moving mass from underground** to overground and away from the centre of rotation, and whether that's had a meaningful impact. Anyone that's done that bit on a roundabout where you all lean in at the same time knows what I mean.

      * yes, mining has happened for much longer, but it's got deeper and more aggressive in that timescale

      ** I'm aware its infinitesimally small amounts of mass in the grand scheme, as well as infinitesimally tiny distance it's being raised

      1. Yet Another Anonymous coward Silver badge

        Re: An alternative approach

        A much bigger effect is dams. Holding millions of tons of water in mountain valleys instead I'd letting it flow down to the sea.

      2. John F Jennings

        Re: An alternative approach

        LMGTFY each year, somewhere between 50 to 100 billions of tons per year are extracted from 100+mtr underground. That equates to approximately 15KM^3 of rock - but also its only 100 M and not all of it on the equator (where it would make a difference)- I worked out in another thread how many (approx) km is needed to change the rotation by 1 second every 40 years - its a lot.

    5. John F Jennings

      Re: An alternative approach

      According to copilot (the sums are hard), to adjust the speed of rotation by 1 second every 40 years, you would need to take around 400 sqr KM from the poles and deposit it on the equator. 1600 billion tonnes. That would slow it down - by 1 second every 40 years......

      reversing it would do the opposite.

      Managing Glacial Ice melt is more significant tool for paleoengineering.......

      interestingly, the earth absorbs approximately 44 tons of meteorites each day. This would ADD the 400 sqr KM to the whole earth over approx 100 million years.... messing up your calculations after a while.

      More than that, the continental drift around the equator is moving (generally) away from the equator at a rate of approximately 3000-7000KM sqrd per year - you would be up the swannee without a paddle..... (also given that sometimes the drift is in the opposite direction net!).....

      Head hurts now, need a quiet room to finish lunch....

  6. Paul Crawford Silver badge
    Trollface

    Better still, every week step 1s forward, next week 1s back, If the average is getting too much then skip one of those steps.

    That will tech the useless fskcers writing software to test and fix their mess as it is no longer a distant problem. Move fast and break things, eh?

    1. ttlanhil

      That would present guarantees about it being tested... But that's also a little unfair.

      The "move fast and break things" crowd is relatively new. Plus going back in time is the opposite of fast.

      OSes have had clocks that assume time is monotonic (i.e. can only go forward) for a long time.

      A negative leap second would break that assumption, allowing us to finish a calculation before it's started (with appropriately perverse definitions and consequences).

      1. Paul Crawford Silver badge

        OSes have had clocks that assume time is monotonic (i.e. can only go forward) for a long time.

        Modern OS typically have more than one sense of time. For example Linux has options for the call clock_gettime() where you can specify CLOCK_REALTIME if you want typical wall-clock readings, or CLOCK_MONOTONIC if you want to actually measure difference in time that are immune to clock adjustments as you are thinking, and also CLOCK_TAI which is the proper one to use if leap seconds bother you as, from the man page, it offers "A nonsettable system-wide clock derived from wall-clock time but ignoring leap seconds. This clock does not experience discontinuities and backwards jumps caused by NTP inserting leap seconds as CLOCK_REALTIME does".

        A negative leap second would break that assumption, allowing us to finish a calculation before it's started (with appropriately perverse definitions and consequences).

        Only if you do not use the correct timer as outlined above. If you are deliberately creating a delay you should never wait on clock time, use the proper OS style of call such as nanosleep() and it will do the job you want and not care about leap seconds, etc. Assuming the OS has not been coded by people who did not understand these aspects...

        1. IvyKing

          The answer might be setting the system clock to Terrestrial Dynamic Time or GPS Time, both of which are monotonic. Then UTC could be handled similarly to standard versus daylight savings time where the offset between TDT or GPS_T and UTC could be read from a table.

    2. jdiebdhidbsusbvwbsidnsoskebid Silver badge

      I propose that every Wednesday we skip forward two whole days to Friday. Then on Sunday, we skip back two days to Friday. During those skips we can add or subtract a leap second as necessary at the same time and noone will notice amongst the joy of a 4 day weekend.

      1. Apprentice of Tokenism
        Pint

        > Then on Sunday, we skip back two days to Friday.

        This will get us caught in an endless weekend. Not that I mind at all. Could pose a paycheck problem though unless that weekend falls between the end and the beginning of a month. But that would still not cover everybody. Also not sure how weekly pay ties into this all. I guess this requires some more careful planning at the pub.

  7. ComputerSays_noAbsolutelyNo Silver badge

    Don't bother for a couple of centuries ...

    and let future pope Gregory the Tremendous fix the problem

    1. Anonymous Coward
      Anonymous Coward

      Re: Don't bother for a couple of centuries ...

      I'm waiting for Pope Chad the bodacious

    2. Sumpbuster

      Re: Don't bother for a couple of centuries ...

      Can't we just reboot the FortNite servers. It'll take a second or two.

      Row, row, row your boat....

  8. Bebu sa Ware Silver badge
    Coat

    transporting large quantities of sand between South Africa and the Sahara.

    > I leave it to the rest of you to calculate the mass required.

    Very rough calculation based on the conservation of angular momentum (Iω): Iδω + ωδI ~ 0 where I is the Earth's moment of inertia, and ω angular velocity.

    The change in angular velocity roughly from 2π/24x60×60 rad./sec to 2π/(24x60×60+1/365.25) is rather small but I is humongous and the required δI and the corresponding tonnes of sand to be moved from lower to higher latitudes could denude the Sahara.

    Might be easier to reverse climate change and have tropical water form larger polar ice caps. ;)

    1. Anonymous Coward
      Anonymous Coward

      Re: transporting large quantities of sand between South Africa and the Sahara.

      Perhaps you could tell us what the measure of time was like during the last ice age when there was 50' of ice as far south as Long Island, New York.

      1. BoHu
        Windows

        Re: transporting large quantities of sand between South Africa and the Sahara.

        It was as if time stood still back then ... ;)

      2. ASCII

        Re: transporting large quantities of sand between South Africa and the Sahara.

        About 22 hours, and the melting of that is the reason the earth's rotation is still speeding up despite the moon's slowing effect

        1. FirstTangoInParis Silver badge

          Re: transporting large quantities of sand between South Africa and the Sahara.

          Well surely we should just adjust the moons orbit to compensate. I’m sure Elon will come up with some plan to make that happen. He could probably pay for it himself too.

  9. elsergiovolador Silver badge

    Time

    Time is our imagination. Everything really exists all at once. Past, present and future.

    A little second here or there makes no difference.

    1. Paul Crawford Silver badge

      Re: Time

      Time is an illusion, lunchtime doubly so.

      1. Anonymous Coward
        Anonymous Coward

        Re: Time

        Oi, this isn't the Reader's Digest.

    2. Fruit and Nutcase Silver badge
      Alert

      Stop the Time

      Stop the Boats[Time]

      Meet at the Greenwich Meridian at 3026-09-07T00:00:00Z

      (Leave balaclavas and masks at home)

  10. Anonymous IV
    Megaphone

    The Bangles foresaw all this...

    ... in Hazy Shade of Winter.

    "Time, time, time

    See what's become of me

    While I looked around for my possibilities

    I was so hard to please."

    [OK, so it was Paul Simon who wrote it - but the Bangles were prettier...!]

    1. I ain't Spartacus Gold badge

      Re: The Bangles foresaw all this...

      Sorry, not time to read your post. I'm having just another manic Monday...

      I definitely wish it were Sunday. Could we have a negative leap-day please?

      1. David Hicklin Silver badge

        Re: The Bangles foresaw all this...

        > I definitely wish it were Sunday

        Get to retirement and every day is a Sunday

  11. Will Godfrey Silver badge
    Coat

    So negative?

    Sorry, I've no time for this.

    1. David 132 Silver badge
      Coat

      Re: So negative?

      I second that.

      1. Paul Crawford Silver badge
        Coat

        Re: So negative?

        Wait a minute, is it that hour already?

  12. Anonymous Coward
    Anonymous Coward

    Flerfers FTW

    This wouldn't be a problem if they just accepted the earth is flat.

    (Yes, I'm taking the piss for those who don't get it and think I actually believe the earth is flat)

  13. Claptrap314 Silver badge

    With hindsight

    Leap seconds were always a bad idea where computers are concerned. There is nothing to be gained by keeping the system clock aligned to the Earth's rotation, and, as we've seen, a lot of pain involved in doing so.

    This proposal is NOT kicking the problem down the road. It's a politically expedient way to get us off this silly idea. I'm absolutely confident that should we be around long enough for the difference cross fifty minutes, the standards body will vote to completely do away with the linkage.

    1. Paul Crawford Silver badge

      Re: With hindsight

      There is nothing to be gained by keeping the system clock aligned to the Earth's rotation, and, as we've seen, a lot of pain involved in doing so.

      Other than keeping clocks in line with the millennia-old convention that midday would be mean solar time? Or that navigation where inertial systems need aligning with the time on Earth?

      The only pain comes from muppets who did not bother to understand or test for leap seconds. Many serious systems have been functioning perfectly well for decades dealing with this, and most (sane) OS have to tools to work just fine. If only they were used...

      1. Justthefacts

        Re: With hindsight

        But midday is only mean solar time in the middle of the timezone. Even ignoring timezone border insanity, a random location on the earth has up to +- half an hour offset, which doesnt seem to cause anyone any real problems. Honestly, I think this solution is the best answer.

        1. doublelayer Silver badge

          Re: With hindsight

          Plus or minus a half an hour compared to the sun makes relatively little difference to humans going about everyday lives where they only need to know when in relation to the local day they are. Nowadays, a lot of people need more than that, and a few people need significantly more than that. Things that happen across time zones need to be synced with more precision, which is one reason we don't want a lot of small offsets in our time zones because it makes, for example, scheduling a meeting for 10:00 difficult.

          If UTC drifted that many minutes, it would cause a lot of problems as people decided whether to stay in sync with the sun or to just ignore that it was getting more inaccurate. Currently, time zones are almost always defined as an offset from UTC, so what happens when one country decides it does need to update while others do not, so your 10:00 meeting has attendees joining at 10:19 who think they're a bit early. You can deal with this if you plan for it, but we benefit from not having to. We've already dealt with this problem with calendars, and therefore we no longer have new versions of the "How is it possible that the October revolution happened on the 7th of November?" situation. Let's not bring the problem back with time.

      2. that one in the corner Silver badge

        Re: With hindsight

        > The only pain comes from muppets who did not bother to understand or test for leap seconds.

        You mean muppets who decided to store wall time (which includes UTC, just ask Iceland) instead of sticking to monotonic time (i.e. TAI) and using the highly-available Olson/TZ library to convert on the occasions when it is necessary (i.e. printing out for the User and parsing User input).

        There is, and never has been, ANY need for 97.999% of coders[1] to have any understanding of leap seconds at all - barely even any understanding of time zones, beyond "time zones exist and I must always pass the User's preference into the TZ library on every conversion.

        Hell, use the damn libraries and you don't need to understand leap years! Or remember the rhyme about months. Why, are you writing *another* piece of code to draw a calendar?

        [1] the remaining are the 0.0001% working on the TZ library, and the lucky 2% who only care about ticks-since-boot if they even need to think about time at all.

        1. J.G.Harston Silver badge

          Re: With hindsight

          "Why are you writing *another* piece of time code?"

          Because *I'm* the one writing the damn library.

      3. Claptrap314 Silver badge

        Re: With hindsight

        I'm going to very strongly disagree with you here. In the first place, the millennia-old convention is not at all what you think. In the 70's, even the cheap 5-inch "bank" globes had that nice figure "8" over the Pacific--to adjust between Sun Time and Mean Time, depending on the day of the year. It was literally known for at least a century that the 24-hour day was an AVERAGE of the length of days throughout a year or four when we started putting clocks in computers.

        So either you are skewing your system clock by a few minutes each way over the span of a year or you are NOT following the Sun. Certainly, it makes sense FOR HUMANS who are NOT engaged in time-sensitive matters in far distant places to want the Sun to be more-or-less overhead at 12 noon, but what does that matter to a computer program?

        What's more, the current "time zone" idea was the invention of the railroads. So we have ALREADY abandoned this "millennia old convention" in order to suit the technical requirements of advancing technology.

        No one so far has talked about how leap seconds are actually implemented. This "solution" has been independently identified and implemented at several quite large institutions. When a leap second is announced, the slew logic is primed. One hour before the leap second is to be effective, the clocks are slowed. This slowing itself is gradual, maximizing at the moment of effect, and returning to normal over the next hour. The actual clock speed follows a half-sine wave.

        This is really, really bad, but has been considered to be less bad than the alternatives--except to do away with the entire thing.

    2. that one in the corner Silver badge

      Re: With hindsight

      > It's a politically expedient way to get us off this silly idea.

      UTC is not a "silly idea". If you are using it inappropriately, that is not the fault of UTC or the bodies that define it.

      > There is nothing to be gained by keeping the system clock aligned to the Earth's rotation

      True.

      The actual *system* clock should be monotonic - and totally divorced from any concept of "time of day" and most definitely keep it well away from wall time, days, months and all that gubbins. Ok, you need to have a way to convert your monotonic time to something generic that can be compared across systems/reboots, which is why we have TAI.

      Report system time as TAI and only ever use (better, only ever *have*) a get-time() call that returns TAI.

      If you happen to want a time of day, because that is the sort of thing the daft Users like, use the TZ library - not forgetting to tell it what time zone you'd like to have the result in - print the resulting value[1] and immediately forget about it. Do the inverse when reading a wall time from a User (and don't forget to point out when they are being silly, like putting in a wall time that never existed, because DST caused an hour jump forwards, or ambiguous, because DST caused a jump back and they weren't precise about the time zone - but none of that has any bearing on the computer's system time).

      The problem is, and always has been, caused by the idiots who put wristwatch chips onto computer motherboards - you know, those RTCs that report back with separate values for day, month, year, hour, minute, second - just after they'd sent out millions of machines without RTCs at all and the User's rebelled at putting in the time and date every. Single. Time. DOS. Booted. Then the lazy sods just said "oh, we have time all sorted now, let's just stop". Heck, if your old enough, you know they never even bothered to have a decent length of ticks-since-boot and the damn thing wrapped around too quickly.[0]

      If we'd started with the bulk of computers stuck on TAI, every programmer would have been forced into the habit of calling the provided wall time formatting and parsing routines, we need never had any time() call that ever returned anything other than TAI. Nope,

      No confusion, no whining about leap-seconds in either/any direction, all that hidden away in a library, carefully maintained by those who do care about this stuff.

      Yes, yes, early PCs would have had rubbish libraries that probably couldn't *really* cope with leap-seconds, but so what? Even the "adjustment to TAI" would have been based on the time/date typed into the DOS autoexec.bat prompt and you'd be lucky if it was accurate to the minute (in its conversions to/from wall time) after that. By the time we got to RTC chips (proper, simple, monotonic-count-of-centiseconds, not wristwatch chips) machines were bigger and libraries better. By the time of we-all-use-NTP a decent TZ library could - did - exist. Heck, it wouldn't have been as bad as all the years we lived with C runtimes that absolutely insisted that DST could only follow rules from the US!

      What would be the big downside? You wouldn't be able to see a wall time reported whilst you were in the BIOS setup screens (by the time we actually *got* a "BIOS" complex enough to have setup screens!). Just the monotonic ticking "time since last boot/poweron". You'd have to wait for DOS to boot and run the "time.exe" to see a wall time. Well, whoop-di-doo. What a loss to mankind, no seeing the date whilst in the BIOS setup - haven't you got more important things to be worrying about if you've gone in there? Even then, as the tech developed and your next box had an RTC, then the BIOS could show you the monotone TAI - which nobody will understand and, not having used to seeing wall time in the BIOS, will just ignore anyway. All fine and dandy.

      SO, if you want to whine about how hard it is to handle wall time - well, blame the idiots who put watches into PCs.

      And then yourself because we have had the amazingly good TZ library for decades now, so if you've been using anything other than monotonic TAI system time in every place you've stored a time then more fool you. Wall time, INCLUDING UTC, does not belong in a data structure[2], it is purely a display format for the end user.

      [0] you can tell oldsters - and embedded microcontroller people - 'cos we still write wraparound checks every time out of habit when using ticks to measure time elapsing, no matter how many bits it has these days. 64-bit "micro"controllers! At 100MHz! Wraps around at, um, carry the leap-year..

      [1] ok, you can have that value as a struct of date, month etc - but only because going multilingual needs it; but I'd've done something evil, like convert TAI through a TZ into some weird arsed, jumbled-up bit packed gibberish, to drop hints that any sane person would use pack/unpack calls to get date, day of week, etc out of that. If someone STILL thinks it is sensible to piddle about with arithmetic on those, rather than going back to system time, then they've put enough effort into the job to be worth the total catastrophe.

      [2] there are a few instances where that doesn't hold, only involving dates in the future, but (a) with random politically driven changes to time zones, future wall time is just an approximation, not worthy of being called "data" (b) still convert those to TAI, using best available knowledge, when doing arithmetic - and junk those results calculated immediately, never store them long term (c) if you doing all that, then you are writing yet another appointments diary program - why, there are too many already! - and you ought to give up anyway as the humans will never agree across timezones no matter how hard you try!

    3. doublelayer Silver badge

      Re: With hindsight

      "There is nothing to be gained by keeping the system clock aligned to the Earth's rotation, and, as we've seen, a lot of pain involved in doing so."

      There is a lot to gain by keeping those system clocks, or at least the ones that track external time rather than monotonic time relatively in sync with each other, though. There is also a reason for human clocks to be in sync with the sun. Therefore, we have to decide what to do:

      1. Keep only human clocks in sync with the sun and let the computer clocks diverge, then re-converge them in software every time.

      2. Have the computer clocks follow the human clocks.

      Unless the human clocks also get out of sync with the sun, I'm not sure you're going to save yourself any of the pain.

      1. that one in the corner Silver badge

        Re: With hindsight

        3. Let human clocks follow the Sun. Let computer clocks follow the atomic clocks. Do not pretend they are the same, do not imagine they are diverging, do NOT "re-converge" them, ever. Just use the provided library calls to TRANSLATE between the two conceptually different and distinct data values at the point it is necessary to do so. If you really, really MUST store a human time for more than a few CPU clock cycles, make sure you store it with ALL the data (including the timezone the User thought they were working in at the point of data entry) and keep that clearly labelled and away from any timestamps that are goung to ge calculated with.

        Bit more long-winded than the closest of your cases, (1), but "re-converge", shudder.

        1. doublelayer Silver badge

          Re: With hindsight

          No, it's exactly the same as option 1, or at least what I meant. This is due to a miscommunication when I said "reconverge". Library calls to try to associate timestamps with atomic clock time every time a time reference is displayed, written, or interacts with a human or program that's going to interact with a human is exactly what I meant by reconverge, and it's a lot more painful than you're giving it credit for.

          With our existing system, we sort of can do it. TAI can represent the atomic clocks, that can be converted to UTC, that can be converted to human time. If UTC is migrated to be virtually the same as TAI (plus a historical offset because drifting minutes is apparently fine, jumping seconds unimaginable) because keeping track of the sun is so annoying, we lose that link to human time. People putting it back will use differing standards, making human times less precise, and we should be well aware that human times are going to be present in lots of things where humans might be reading them, requiring them to be reconverted when imported. The result of your plan is that, by losing that information, we end up reporting all times confidently as TAI because we did that conversion, but most of our converted answers will be wrong. By reporting them as UTC, we at least make it clear what information we're not tracking, which makes internal comparisons more reliable.

  14. david 12 Silver badge

    Negative second excuse

    They could just ignore negative seconds, and wait for the next positive second.

    AFIAIK, there is no suggestion that time will eventually be 1 hour different in the negative direction. This is just the opportunity they were waiting for to stop doing leap-second adjustments. Which will solve the problem by shifting it from time providers to time users.

    1. BoHu
      Coat

      Re: Negative second excuse

      They could also square root those negatives into imaginary seconds and usher in a new era of complex time metrology imho ... like transcendental wristwatches with four hands and all. Perfect quantum Schrödinger devices for accurately timing relativity-defying cat sporting events! ;)

    2. that one in the corner Silver badge

      Re: Negative second excuse

      > there is no suggestion that time will eventually be 1 hour different in the negative direction.

      13th September, 1999

      We all know what happened then.

      1st January, 2000

      Nobody had any idea at all when to drop the ball, set off the fireworks or snog that one from Accounts with the gorgeous hair.

      And we've seen there are so many other ways we could lose The Moon and the resultant spin-up that would allow for: only negative one hour would be a blessing.

  15. Michael Hoffmann Silver badge
    Meh

    Earth rotation increasing?

    Got confused reading that. Shouldn't the Mun be slowing us down? Draining rotational energy and all that?

    1. user555

      Re: Earth rotation increasing?

      Yup, which is why no-one thought this would happen. At least not until it became apparent ... at which point the question becomes why? ... and the best explanation is rate of polar ice loss has become so large it's girth narrowing effect is overpowering the Moon's drag! Which is eye-popping and can only be seen as a dire warning of too much global warming.

      1. Fruit and Nutcase Silver badge
        Alert

        Re: Earth rotation increasing?

        girth narrowing...

        That may be counteracted by the increasing girth of the human population and cars!

        1. J.G.Harston Silver badge

          Re: Earth rotation increasing?

          And Leon's getting larrrrger.

          1. The Oncoming Scorn Silver badge

            Re: Earth rotation increasing?

            "And Leon's getting larrrrger."

            There's a sale at Penneys.

        2. Yet Another Anonymous coward Silver badge

          Re: Earth rotation increasing?

          Unfortunately the largest people with the largest cars do not live on the equator.

      2. Anonymous Coward
        Anonymous Coward

        Re: Earth rotation increasing?

        Wouldn't that redistribute water towards the equator and widen the girth?

  16. Anonymous Coward
    Anonymous Coward

    why?

    For the commentard who thinks that the earth should have 360 time zones so that the sun is always overhead at noon, grow up. Unless you have lived between the tropcs of cancer and of capricorn, the sun has never been directly overhead at noon.

    1. that one in the corner Silver badge

      Re: why?

      Which imaginary commentard was that? If you are having the hallucinations again, you may want to get out of the noon day sun and back onto the dried frog pills.

      BTW, noon is, and always has been, "when the Sun is at it peak". Never any mention of "directly overhead". Except in purple prose set in the heat of the desert, when our heroine is delirious from both the lack of water and the sight of the sheikh's massive weapon, at which point a few degrees error in estimating solar altitude against the zenith is quite understandable.

      1. Anonymous Coward
        Anonymous Coward

        Re: why?

        Let me find the video that explains why you're so incorrect that I shouldn't even be responding.

        Found it: https://www.youtube.com/watch?v=q5q77MQzU2Q its titled " My cousin Oskaar "

        1. that one in the corner Silver badge

          Re: why?

          Yes, and? Something can be at its peak in a trajectory (from any given physical point of view) and not be visible to the observer at that spot.

          Forget drying the frogs, I'm not sure you can afford to wait that long; just swallow them raw.

    2. werdsmith Silver badge

      Re: why?

      You mean like going back to before the railway age?

      That’s how it was done, the church clock was set according to the position of the sun at any location.

      Nobody could move or communicate fast enough for it to matter.

      1. Yet Another Anonymous coward Silver badge

        Re: why?

        Today, nobody could move or commute fast enough for it to matter.

        The railway created the problem and now modern railways are solving it.

        1. that one in the corner Silver badge

          Re: why?

          Ah, you're on the Southern Rail routes. Nods sagely. We understand.

          1. Yet Another Anonymous coward Silver badge

            Re: why?

            You can set your calendar by them

  17. Fruit and Nutcase Silver badge

    Dr Who

    Has anyone consulted the time lord?

    How will it effect the scripts? Will the Darlek invasion happen on time?

  18. Anonymous Coward
    Anonymous Coward

    This was fixed years ago

    Just do your job and add or subtract leap seconds.

    There’s a million other people who worry about fixing bugs in computers.

  19. Rich 2 Silver badge

    Groan

    “Many computer systems were designed on the assumption that a leap second would always be added rather than removed”

    Well that was fucking short sighted, wasn’t it?

  20. hayzoos
    Pint

    It's five o'clock somewhere!

    Need I say more?

  21. MarkTheMorose

    Simple solution

    I'm just going to wait until President Trump decides to rename UTC to 'America Time'. It will be a big, beautiful time, and the greatest time ever.

    1. The Oncoming Scorn Silver badge
      Facepalm

      Re: Simple solution

      & then tariff it!

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon