r/AskComputerScience • u/grawmpy • Dec 09 '25
32-bit computers hit a time calculation wall in 2038. Will they most likely all be phased out by then?
The wall hits 03:14:07 UTC on Tuesday, January 19, 2038. After this the time calculation will roll back over to either December 13, 1901 or January 1, 1970 depending on the implementation. Does anyone think 32-bit architecture computers will still be in service by 2038?
140
Upvotes
88
u/Temporary_Pie2733 Dec 09 '25
32-bit architectures aren’t a problem, just the ones that still define time_t to be a 32-bit integer or explicitly store timestamps as 32-bit values. There is no problem with a 32-bit machine using a 64-bit datatype; a timestamp doesn’t need to fit in a register.
26
u/fb39ca4 Dec 09 '25
32 bit computers can use 64 bit variables and vice versa. It's a software problem.
39
u/nuclear_splines Ph.D Data Science Dec 09 '25
Absolutely. The vast majority of personal computers, phones, and consumer electronics will have made the switch, and anything crucial like a big bank database will have made the leap. But a cash register in a mom & pop store? The electronic signage at your gas station? The microcontroller running the elevator in some random apartment complex? There are many computers in embedded devices that we set up and leave for years and years unless they break. I'm confident there'll still be 32-bit hardware deployed in those settings.
12
u/iball1984 Dec 09 '25
There’s a heap of embedded devices that may have a problem.
The question is how many use the time_t struct, how many need to and how many will break if the time is wrong.
3
u/sanimalp Dec 09 '25
Many will still be in service. Jumbo jets certified with floppy disk drives are still getting updates on floppy...
Someone will have to update all the code for life safety critical systems because that will be cheaper than re-integrating and certifying new hardware.
3
u/RobertJacobson Dec 09 '25
Consider that 8-bit microcontrollers are being manufactured today at a rate higher than they ever have been. We can be pretty confident that 32-bit microcontrollers will be in active production long after 2038.
4
u/peter303_ Dec 09 '25
Many code packages have a time type and library, so its not attached to specific implementation like int32. Not all coders have used this.
1
u/Fluid-Tone-9680 Dec 09 '25
Problem with time can be solved in software.
Most of MCUs don't care about wall clock time though, they may measure small intervals like minutes/hours and there is enough of precision even in 8 bit systems to do it (with timer prescalers).
32 bit systems will be phasing put when more popular 64 bit alternatives will be cheaper that 32 bit equivalent, faster and less power consuming. Like today you can buy 32 but MCU with decent peripherals for same cost as bare 8 bit AVR mcu.
1
u/Eisenfuss19 Dec 09 '25
32 bit CPUs can work with 32 bit values, but also with 64 bit, or even 128 bit. 32 bit CPUs use 32 bit to save memory addresses that means you can have max 4GB of memory.
x86 64 bit uses 48 bits for memory.
As others have stated, this is only a software problem. Having to use 64 bits for time might slightly increase the time a 32 bit CPU used to do time calculations.
1
u/ghjm MSCS, CS Pro (20+) Dec 09 '25
Yes, there will still be 32-bit computers (and even 16-bit computers using 32-bit date values) in service in 2038. They will need to be reprogrammed or replaced and in some cases this will be very difficult.
The good news is that a lot of 32-bit systems use unsigned integers for dates, which won't roll over until 2106. The bad news is that it's hard to tell which format a given system is using. The even worse news is that a lot of these systems no longer have source code or build tools and can't be modified.
1
u/the-quibbler Dec 09 '25
Yes, there will be millions of 32-bit systems, especially microcontrollers, still in service in 12 years.
1
u/Ginden Dec 09 '25
Lots of new code deployed on 32-bit microcontrollers use uint32 for timestamps.
1
u/0jdd1 Dec 09 '25
“Computers” is a funny word, with the implicit assumption that they’re administered, and planned, and updated, and sitting in a data center where “phased out” is even a thing.
There’s a lot more IoT devices (say) than traditional computers. By 2038 there’ll be a lot more. I strongly believe there will be plenty of 32-bit IoT devices still in service in 2038, until suddenly they break and the lights go out.
1
u/thegrayvapour Dec 09 '25
They tried this on us about 26 years ago.
1
u/stonerism Dec 09 '25
If there is still something running in 2038 that's using 32-bit time, studies should be done on how something can be durable enough to survive that line.
1
u/[deleted] Dec 09 '25
The ones that haven't switched to a 64-bit time_t by then, yes. But are there any actively supported 32-bit systems with a 32-bit time_t anymore? (Or equivalent.)
1
u/Dave_A480 Dec 10 '25
It's not 32 bit architecture that is the issue (32 bit machines can actually handle 64 bit data types - just not natively, it requires some software fun and games)......
It's the software itself relying on a 32 bit variable to store the date......
This can also happen on 64 bit machines, if someone was trying to be super efficient with memory and used a uint_32 for the date value.
1
u/zzing Dec 10 '25
How exactly would an issue on machines that occurs in 2038 roll over to 1901? I get 1970, but no idea where 1901 comes from - I would expect it to have a different date of issue.
1
u/sierra_whiskey1 Dec 10 '25
It’ll be like y2k all over again
1
u/r2k-in-the-vortex Dec 10 '25
No. Just plain no. There is no time calculation wall. An 8bit computer can calculate year 2025 perfectly fine, or any other date. The size of the timestamp variable has nothing to do with width of the data bus or size of the registers.
When 32bit timestamp overflows in 2038, that is a problem only if the system hasnt recieved any updates in past 70 years and doesnt realize the date cant possibly be 1970.
1
u/cib2018 Dec 10 '25
Y2K panic again?
1
u/Pale_Height_1251 Dec 10 '25
32 bit architectures can work with arbitrary size numbers no problem, you just have to write the code to do it.
It's really nothing to do with 32 bit or 64 bit.
1
u/Desperate-Ad-5109 Dec 11 '25
I can’t wait to see the end of 32 bit anything.
1
u/QuestNetworkFish Dec 11 '25
They'll just redefine the unix epoch as starting on January 1, 1990, thus solving the problem once and for all
1
u/juancn Dec 11 '25
It’s a software issue mainly.
There’s nothing in the 32bit systems hardware that’s a limitation.
Even with old computers with a Dallas DS1287 that only stores 2 digit dates, current time can still be obtained by assuming the correct century.
There are a couple of system calls (both in unixes and windows) that have issues but they have been deprecated for a long time.
Also BIOS routines will likely be wrong too.
1
u/Odd-Respond-4267 Dec 11 '25
They should change to unsigned 32 which gives another 100ish years,
1
u/soundman32 Dec 11 '25
At my first job, they had an 8bit Z80 based system built around 1985. It used a 1 digit year input, because nobody would still be using it 5 years later. In 1989 it was still selling well, so they implemented a 2 digit year input, because nobody would be using it 10 years later. Last I heard, around 1999, they implemented a 4 digit year input. Im assuming they will have stopped selling it by 2036.
1
u/Mobile_Analysis2132 Dec 11 '25
Two biggest issues
1
u/recaffeinated Dec 11 '25
I know several billion dollar companies where there have already been problems (future dates past 19/01/2038 already have this behaviour), and where they've had to do significant upgrades to prevent more issues closer to the cut-off date.
The main culprit is actually 32bit database columns used for storing time. The databases run on 64 bit machines, but the columns have traditionally been set to smaller integer numbers to save space. Some of those databases have been running for 20 years, and will probably run for another 20.
1
u/zsaleeba Dec 13 '25
The short answer - nearly every platform has either already changed to 64 bit time, or is in the process of making the transition. The problem is basically fixed already. There are some legacy platforms like FreeBSD on i386 which aren't fixed and probably won't be fixed, but it's unlikely any of those will still be around in 2038.
1
u/questron64 Dec 13 '25
This has nothing to do with whether a computer is 32-bit or not. You can work with values larger than the native word size of a computer, the only issue is the standard time format using a 32-bit value which has already been correcting in most operating systems and APIs.
1
u/Linosia97 Feb 07 '26
So you wanna say if the device and OS is 32 bit — it can still continue working after 2038?
1
u/beak-and-rangula Aug 07 '26
We will absolutely still see 32-bit computers in 2038.
As someone who has worked with industrial PCs, there are still pieces of equipment in extremely critical roles that still use 8-bit processors.
Upgrading takes time and money, if the little box still runs the machine it doesn't make sense to the CFO to spend the time and money to replace it.
0
u/DmtGrm Dec 09 '25
But standard DateTime is 64bit float, not 4-byte float. Ancient Intel 80287 was doing just fine with 8-byte floats being a 16bit system.