5 ms·
Leap seconds are a big enough problem that stock markets shut down for them.[1] Google starts advancing their clocks hours in advance of a leap second. Power
by Animats 10y ago
Leap seconds are a big enough problem that stock markets shut down for them.[1] Google starts advancing their clocks hours in advance of a leap second. Power companies take about four hours to catch up after one. (Every 1800 RPM generator has to make 30 extra turns.) Very few systems properly handle a 61-second minute. Unix timestamps are fundamentally incompatible with leap seconds.
[1] http://money.cnn.com/2015/06/29/technology/leap-second/ http://money.cnn.com/2015/06/29/technology/leap-second/
- elmigranto 10y agoSure is a problem when you are writing a system for processing stocks, not really if you are making a calendar app or ecommerce website. I guess what I mean is that things like that are a nice piece of trivia, little fun facts, but nothing to be concerned of for most of us.
- aardvark179 10y agoUntil you assume midnight one day plus 24 * 3600 seconds will equal midnight the next day. These kinds of problems will bite you in all sort of places you don't think you need to worry about them.
- sparky_z 10y ago"Every 1800 RPM generator has to make 30 extra turns." I'm having trouble wrapping my my head around this one. If the goal is maintaining a steady output, shouldn't they keep revolving at the same rate, without worrying about what day the "current" second (no pun intended) belongs to? After all, I'm assuming they don't "catch up" after leap days, they just run for an extra day at the same output level. Why would leap seconds be different? Put another way, what do they need to spread those extra 30 turns over a 4 hour catch up period? Weren't they given an extra second in which to take care of them?
- XorNot 10y agoThe power grid doesn't work if disparate phases aren't synchronized. On a very large scale this is why HVDC is used, but on smaller scales its still more cost-effective to coordinate with GPS time since it's atomic-clock backed.
- dredmorbius 10y agoThis is the first I've heard of HVDC, and it's apparently a thing. However from my quick read, it's 1) still a frequency-based current, so you're not eliminating the requirement to synchronise generation, and 2) the advantages are in areas other than frequency synchronisation -- e.g., avoiding capacitance load in long-distance undersea cables.
- fnj 10y agoWhat? WHAT? DC does not have a "frequency".
- dredmorbius 10y agoDamn, I guess it's been too long since I've done (or thought about) circuit theory. But yeah, the general idea of HVDC is a frequency-free current: http://www.cleanlineenergy.com/technology/hvdc/how http://www.cleanlineenergy.com/technology/hvdc/how And now I'm trying to think my way through it: There is definitely DC with no frequency component, e.g., battery circuits. You've got a cathode, an anode, and a flow between them. I'm trying to sort out if DC can have a frequency component. I seem to recall that rectified circuits can operate by basically (pardon crude metaphors) chopping off the negative side of the phase. You'll have a wave pattern, but it's all going in one direction. Pushed through sufficient capacitance or impedance and you'll likely smooth that out as well. Which is getting me to wonder just how a DC generator works.
- nicky0 10y agoThere is no DC generator as such, just a converter from AC to DC.
- dlgeek 10y agoA lot of systems use the 60hz (or 50hz depending on location) signal from AC power as a way of keeping time. It's used enough that power companies will actually adjust the frequency minutely at night in order to make up for any mistakes made during the day. (Which in turn makes it so reliable that more systems use it to track time, and so on...) I guess grandparent post is saying power companies go ahead and feed in extra cycles for the leap second. It's not something I'd heard of, but it wouldn't surprise me.
- metafunctor 10y agoI remember reading that the frequency at any given time is usually somewhere between 49.9Hz and 50.1Hz (and similarly around 60Hz I'd imagine). So for a 50Hz clock, it's not very accurate at all. However, I just found that the _average_ frequency over a length of time should be exactly 50Hz, so it is, in fact, good for keeping time. More here: https://wwwhome.ewi.utwente.nl/~ptdeboer/misc/mains.html https://wwwhome.ewi.utwente.nl/~ptdeboer/misc/mains.html
- kalleboo 10y agoI remember hearing that Analog TV stations were also used for timekeeping since they had a very stable clock for the blanking interval
- Animats 10y agoUS analog TV (all three classic networks) used to be synchronized to an atomic clock in NYC. This allowed switching from one source to another without frame tearing. Separate from that, there was a scheme for sending time of day in the vertical retrace interval, to set clocks and VCRs. Few devices received that, although I once encountered a hotel TV with a built-in analog clock that did. (The clock was wrong; although it could set itself automatically, it had to be told manually which channel provided a time signal. That's probably why this feature never caught on. I was bored enough to figure out how to set the thing.) US telephony used to be synchronized to an atomic clock in New Jersey. The TDMA multiplexing was kept in sync so that frames could be transferred synchronously without buffering. If the clock connection was lost, T1 to T3 lines would get slightly out of sync, and occasionally drop or add an 8-bit frame. This is unnoticeable in audio, but an error for modems. But neither of these was a time count. It was just a square wave.
- cillian64 10y agoDo you have a source for grid frequency taking into account leap seconds? I had a quick look around for information about the UK grid and can't find any timekeeping details. Also, wouldn't they have to slow down slightly rather than speed up? The second at midnight effectively takes twice as long, which is equivalent to the grid's waveform stopping for 1 second.
- Animats 10y agoDave Mills, the NTP guy, wrote about this. He'd watch clocks from various sources after a leap second to see what happened.