Maciej A. Czyzewski Blog Talks About

Year 2038 problem

Posted on

2038

The year 2038 problem is an issue for computing and data storage situations in which time values are stored or calculated as a signed 32-bit integer.

All the smart kids know that this number is interpreted as the number of seconds since 00:00:00 UTC on 1 January 1970 (“the epoch”).

Mathematics

$2147483648 = 2^{31}$ is a perfect 31st power.

Timestamp will be out of signed 32-bit range…

Solution

  • Change signed 32-bit to signed 64-bit
  • Start counting from the date of 03:14:07 UTC on Tuesday, 19 January 2038

Analogy

Y2K