kids encyclopedia robot

Year 2038 problem facts for kids

Kids Encyclopedia Facts
Year 2038 problem
An animated visual of the bug in action. This problem will happen at 03:14:08 on 19 January 2038.

The Year 2038 problem is a special issue that could affect some computers. It happens because of how these computers keep track of time. They count the number of seconds that have passed since a specific date: January 1, 1970, at 00:00 UTC.

Many older computers, or systems based on older designs, use a special kind of number called a 32-bit number to store this count. This type of number can only hold a certain range of values. When the number of seconds goes beyond this limit, the computer can get confused, which might cause problems.

What is the Year 2038 Problem?

The biggest number a 32-bit system can store for time is 2,147,483,647 seconds. If you count that many seconds from January 1, 1970, you reach January 19, 2038, at 03:14:07 UTC.

What Happens When Time Runs Out?

The problem starts just one second after that time. When the computer tries to add one more second, the 32-bit number "overflows." This means it tries to store a number too big for its space. Instead of going higher, the number suddenly becomes a very large negative number: -2,147,483,648 seconds.

If you count backwards from January 1, 1970, using this negative number, you end up on December 13, 1901, at 20:45:52 UTC. So, a computer that thinks it's 2038 might suddenly think it's 1901!

Why This Could Be a Problem

When a computer suddenly thinks the date is over 100 years in the past, it can cause many issues. Depending on how the computer's programs are made, it might:

  • Show the wrong date and time.
  • Make mistakes in calculations that depend on time.
  • Stop working correctly.
  • Even crash completely.

This could affect systems that control important things like traffic lights, power grids, or even some older phones and devices.

How Can We Fix It?

The good news is that there's a clear solution to this problem. Many modern computers already use a different way to store time.

The 64-bit Solution

Instead of using a 32-bit number, many systems now use a 64-bit number to store the time. A 64-bit number can hold a much, much larger value. It can count seconds for billions of years, which is far more than we will ever need!

Most new computers and software already use 64-bit time. However, older systems or devices that still rely on 32-bit time will need to be updated. This means their programs will need to be changed or "reprogrammed" before 2038 to use the 64-bit method. This work is already happening for many important systems.

See also

Kids robot.svg In Spanish: Problema del año 2038 para niños

kids search engine
Year 2038 problem Facts for Kids. Kiddle Encyclopedia.