Offbeat?
I see what you did there...
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 …
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.
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
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).
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.
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. :)
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.
... 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.
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.
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...
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.)
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.
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.
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.
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?
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/ ?
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 (†).
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.
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
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.
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....
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).
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...
> 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.
> 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. ;)
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.
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...
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.
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.
> 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.
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.
> 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!
"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.
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.
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.
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.
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! ;)
> 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.
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.
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.