Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Search - "leap second"
I'm never making fun of people who go to Stack Overflow for answers ever again.
I mean, have you guys seen this? A leap-second causing 100% CPU use in MySQL, and a dude figures it out like it was nothing, and provides a quick solution!
Just read about the leap second being added at the exact moment of going in to New Year (31/12/16 23:59:60!!!!!). I can't be the only one thinking what the fucking fuck are they thinking and why am i hearing about this for the first time 24 hours before it's happening.3
Just looked through the man page for date and found this:
%M minute (00..59)
%S second (00..60)
Is that a mistake in the man? Or are they actually preparing for the leap second? But how? Leap seconds are not determined years ahead of time, so it needs constant updating?
I just assume the leap seconds are just ignored. Like, if we come across a leap second, I expected my computer's clock to be a second off and then next time we use NTP, it's just back. And that the timestamp is just without leap seconds. But is there actually somewhere on my computer a counter for how many leap seconds have happened?
Or maybe even a list, exactly detailing all leap seconds and the moments they happened?
I definitely need to look into this... Not now... Need to get back to work... But soon.4
In 2020, the Earth slightly accelerated its spin.
For the first time in history, we need to add a *negative* leap second in our datetime systems.
Which means all the datetime libs need an update. I hope they anticipated this.20