Today I Learned - Rocky Kev

TIL about the End of Time! (for Unix)

POSTED ON:

TAGS:

This is known as the Year 2038 problem!

On January 19th, 2038 at precisely 03:14:07 UTC, instead of the clock going to 03:14:08 UTC, it will overflow and go to 20:45:52 UTC of December 13th, 1901.

The reason is that for systems which measure Unix time, the number of seconds elapsed since the Unix epoch (00:00:00 UTC on 1 January 1970), the data is stored in a signed 32-bit integer.

via Wikipedia Year 2038 Problem

The year 2038 problem applies to signed 32 bit timestamps only, which PHP and some other systems use.

Javascript doesn't have integers but only floats, which don't have an inherent maximum value (but in return have less precision).

Jonas Schubert Erlandsson's SO comment


Related TILs

Tagged:

TIL the origins of the term Algorithms

Muhammad ibn Musa al-Khwarizmi's name is a reference to where he was from — 'al-Khwarizm' means that he was from Khwarazm, a region roughly on the border of modern-day Uzbekistan and Turkmenista. Al-Khwarizmi was, somehow, recorded as something close to 'Algorizmi' which, in turn, became our all-purpose math word: algorithm.

TIL about the End of Time! (for Unix)

On January 19th, 2038 at precisely 03:14:07 UTC, instead of the clock going to 03:14:08 UTC, it will overflow and go to 20:45:52 UTC of December 13th, 1901.

TIL about Port 17, QoTD

A host may connect to a server that supports the QOTD protocol, on either TCP or UDP port 17. To keep the quotes at a reasonable length, RFC 865 specifies a maximum of 512 octets for the quote.