Live data from Hacker News

Some DNS lookups causing 5xx errors due to leap second bug

cloudflarestatus.com

51–60 of 135 posts

Re: Some DNS lookups causing 5xx errors due to leap second bug

#51

Once again we're screwed by different people wanting "time" to mean different things. There is no hope for humanity once we start traveling anywhere close to light speed into and out of the solar system. I propose a new "non-time" time system. It has exactly two real values which range from 0 to tau and an integer, the first real number is radians of earth rotation, and the second is radians of the rotation around th…

What if the stones move?

Re: Some DNS lookups causing 5xx errors due to leap second bug

#52
post #29
post #26

Earlier quoted context omitted.

Leap seconds are a change to the number of UTC epoch seconds.

> Leap seconds are a change to the number of UTC epoch seconds. UTC is different from epoch time. Epoch time by definition does not count leap seconds. https://en.m.wikipedia.org/wiki/Unix_time

But it is affected by leap seconds. According to the example labeled "Unix time across midnight when a UTC leap second was inserted on 1 January 1999" the unix time went backwards. So using epoch/unix time does not help.

Re: Some DNS lookups causing 5xx errors due to leap second bug

#53

Once again we're screwed by different people wanting "time" to mean different things. There is no hope for humanity once we start traveling anywhere close to light speed into and out of the solar system. I propose a new "non-time" time system. It has exactly two real values which range from 0 to tau and an integer, the first real number is radians of earth rotation, and the second is radians of the rotation around th…

If we somehow manage to "reverse" the Earth's orbit around the sun, does that mean we will have invented a time machine?!

Re: Some DNS lookups causing 5xx errors due to leap second bug

#54
post #29
post #26

Earlier quoted context omitted.

Leap seconds are a change to the number of UTC epoch seconds.

> Leap seconds are a change to the number of UTC epoch seconds. UTC is different from epoch time. Epoch time by definition does not count leap seconds. https://en.m.wikipedia.org/wiki/Unix_time

Is it safe to say that time() in php and Date.now() in JS do not care about leap seconds?

Re: Some DNS lookups causing 5xx errors due to leap second bug

#55
post #54
post #29

Earlier quoted context omitted.

> Leap seconds are a change to the number of UTC epoch seconds. UTC is different from epoch time. Epoch time by definition does not count leap seconds. https://en.m.wikipedia.org/wiki/Unix_time

Is it safe to say that time() in php and Date.now() in JS do not care about leap seconds?

From [1], it is likely messier than that:

> The time() function will resolve to the system time of that server. If the server is running an NTP daemon then it will be leap second aware and adjust accordingly. PHP has no knowledge of this, but the system does.

> It took me a long time to understand this, but what happens is that the timestamp increases during the leap second, and when the leap second is over, the timestamp (but not the UTC!) jumps back one second.

[1] http://stackoverflow.com/questions/7780464/is-time-guarantee...

Re: Some DNS lookups causing 5xx errors due to leap second bug

#56
post #51

Once again we're screwed by different people wanting "time" to mean different things. There is no hope for humanity once we start traveling anywhere close to light speed into and out of the solar system. I propose a new "non-time" time system. It has exactly two real values which range from 0 to tau and an integer, the first real number is radians of earth rotation, and the second is radians of the rotation around th…

What if the stones move?

Guess we better use really large stones :-)

Re: Some DNS lookups causing 5xx errors due to leap second bug

#57

Once again we're screwed by different people wanting "time" to mean different things. There is no hope for humanity once we start traveling anywhere close to light speed into and out of the solar system. I propose a new "non-time" time system. It has exactly two real values which range from 0 to tau and an integer, the first real number is radians of earth rotation, and the second is radians of the rotation around th…

> Once again we're screwed by different people wanting "time" to mean different things. There is no hope for humanity once we start traveling anywhere close to light speed into and out of the solar system.

Time is relative, you'll have the feeling of angst until you accept the relativity. No pun intended.

Re: Some DNS lookups causing 5xx errors due to leap second bug

#58

Once again we're screwed by different people wanting "time" to mean different things. There is no hope for humanity once we start traveling anywhere close to light speed into and out of the solar system. I propose a new "non-time" time system. It has exactly two real values which range from 0 to tau and an integer, the first real number is radians of earth rotation, and the second is radians of the rotation around th…

[deleted]

Re: Some DNS lookups causing 5xx errors due to leap second bug

#59
post #49

What causes real-world problems with leap seconds is actually unrelated to the nasty interactions of metrology and solar time -- it's a specific and avoidable problem with how NTP (and many OSes/languages) represent time -- it's a types issue. The right way for computers to represent time is with a number that represents the number of constant-rate ticks that have elapsed past a some agreed-upon epoch. If you know wh…

Thank you so very much for the effort to elucidate the real problem hiding underneath the usual slew of Leap Second issues.

I keep telling people to use TAI. I once contemplated writing kernel code to rebate internal clock stuff to TAI but at the end of the day it was not worth doing because I would have needed to build a completely new stack of things above the kernel to use it in order to avoid problems.

Re: Some DNS lookups causing 5xx errors due to leap second bug

#60

Once again we're screwed by different people wanting "time" to mean different things. There is no hope for humanity once we start traveling anywhere close to light speed into and out of the solar system. I propose a new "non-time" time system. It has exactly two real values which range from 0 to tau and an integer, the first real number is radians of earth rotation, and the second is radians of the rotation around th…

https://en.wikipedia.org/wiki/Manhattanhenge
Post reply on HN