News for hackers. Stuff that matters.
Re:Hate leap seconds? Imagine a negative one by alanbernstein on Thursday January 13, 2022 @09:31PM (#29929941)
> If time moves one hour back, just change your local zone offset

...so you want to replace leap seconds with leap hours?

Re:Hate leap seconds? Imagine a negative one by Dylan16807 on Thursday January 13, 2022 @10:18PM (#29930220)
Calculate how often leap hours will happen.

So, yes.

Time zone changes occasionally happen already.

Re:Hate leap seconds? Imagine a negative one by XorNot on Thursday January 13, 2022 @11:21PM (#29930560)
You're complaining about the difficulty of special-case code handling, and your solution is make an even specialer case which will happen so infrequently that no one will handle it until it does happen.
Re:Hate leap seconds? Imagine a negative one by Dylan16807 on Friday January 14, 2022 @01:54AM (#29931359)
1. When we're talking about hundreds of years, even if it was that special it would cause less total disruption.

2. It's a time zone change, and those already happen more often than leap seconds.

Re:Hate leap seconds? Imagine a negative one by withinboredom on Friday January 14, 2022 @11:14AM (#29936275)
> It's a time zone change, and those already happen more often than leap seconds.

I don't know about you, but I never change the time zone on my servers. Ever.

Re:Hate leap seconds? Imagine a negative one by vbezhenar on Friday January 14, 2022 @01:21PM (#29938035)
I'm living in a place where time zone offset/rules were changed 3 times in the last 30 years, because politics can't make their mind what do they really want.
Re:Hate leap seconds? Imagine a negative one by Dylan16807 on Friday January 14, 2022 @10:27PM (#29943265)
Does the offset of your server's time zone also never change?

Either way, these code paths get tested relatively often.

Re:Hate leap seconds? Imagine a negative one by umanwizard on Friday January 14, 2022 @01:12AM (#29931151)
I’m fine with punting on problems that won’t have to be solved for literally thousands of years.