Software engineering · 5 min
The Year 2038 problem
Learn about a coming date bug.
What the sources describe
Many computer systems store time as the number of seconds since 1 January 1970, called Unix time. Older systems store this number as a signed 32-bit integer, which can hold numbers up to 2,147,483,647.
That limit will be reached at 03:14:07 Coordinated Universal Time on 19 January 2038. One second later, the number will overflow and wrap around to a negative value, which such systems will read as a date in December 1901. This is called the Year 2038 problem.
Most modern computers, phones and operating systems now use 64-bit time, which will not run out for billions of years. In 2020, Linux added support for 64-bit time on 32-bit systems. But older devices built into equipment, such as industrial controllers, cars and medical devices, may still use 32-bit time, as may some file formats and databases.
Problems can appear before 2038, for example in software calculating future dates, such as long loans. The earlier Year 2000 problem was largely managed through costly preparation, showing that fixing such issues early works.
Connecting the ideas
Systems storing Unix time as a signed 32-bit integer will overflow at 03:14:07 UTC on 19 January 2038, wrapping to 1901, though most modern systems now use 64-bit time.
The big idea
Fix known problems early, before deadlines arrive.
Use it in real life
Calculate how many years remain until 19 January 2038. Then think of a device in your home that may last a long time, such as a smart thermostat or car. Look up whether its maker provides software updates, and note any device that might need replacing or checking before 2038.
Try it
Made-up example: What is the Year 2038 problem?
A good answer: systems storing Unix time as a signed 32-bit number will overflow on 19 January 2038.
Quick quiz
1. What happens when the 32-bit number overflows?
2. Why are embedded devices a concern?
3. What does the Year 2000 problem suggest about 2038?
Finished reading?
Make this the next Doom video?
Vote for the lessons you'd most like to see turned into a short animated story.
How was this lesson?
No ratings yet — be the first.
Sign in to rateSources
Overview sources only. These references are not a completed primary-source fact-check.
Limitations
Overview only.
Voice: Debby — Soft and soothing (tap to change)
Debby narration · part 1 of 15
