Next doomsday date: January 19th 2038

Red Squirrel

No Lifer
May 24, 2003
69,956
13,468
126
www.anyf.ca
This is going to be an interesting one as practically everything relies on unix time. When you write code that uses date/time it's all based on that. mktime() etc. I imagine 64 bit will fix that, but that's assuming time_t is also defined as a 64 bit integer in the code. I presume they'll have everything updated properly by then though, but I can see lot of obscure embedded things failing.
 

Muse

Lifer
Jul 11, 2001
40,209
9,813
136
Eh, the Y2K bug came and went with barely a whimper. Watch Office Space. I empathize with the cat because I did some Y2K compliance code alterations and sign off in dBase style code.

This will likely be about as big a deal, i.e. nothing special. A few things will break. Some forethought will help.
 
  • Like
Reactions: pmv and Pohemi

IronWing

No Lifer
Jul 20, 2001
72,224
32,627
136
The 2038 thing broke a calendar program I wrote fifteen years ago. I wrote a routine to allow annual events to be added and if the event ran past 2038, down it went. Trapping the error turned into a pain in the butt as one had to run the time function to see if the calculated date was in the forbidden zone which would then crash the function. Eventually I figured it out.
 

pmv

Lifer
May 30, 2008
14,758
9,652
136
Eh, the Y2K bug came and went with barely a whimper. Watch Office Space. I empathize with the cat because I did some Y2K compliance code alterations and sign off in dBase style code.

This will likely be about as big a deal, i.e. nothing special. A few things will break. Some forethought will help.

Though the Y2K thing caused so few problems precisely _because_ people like you (and me, and a lot of others) fixed things to ensure that. All I recall is reading was that an automatic buoy (reporting tidal information or something) in a harbour somewhere here malfunctioned. Guess someone missed that one.

Seems like there's plenty of time to prepare and fix everything for this one (cue inevitable 16 years of procrastination and last-minute staying-up-all-night essay crisis)
 

Red Squirrel

No Lifer
May 24, 2003
69,956
13,468
126
www.anyf.ca
I just realized, Raspberry Pis might have issues, don't think they're 64-bit, unless the newer ones are, not sure which version this one is but just tried this random one that's acting as my HTPC.

Code:
pi@raspberrypi:~ $ date --date='@2147483647'
Mon 18 Jan 2038 10:14:07 PM EST
pi@raspberrypi:~ $ date --date='@2147483648'
date: invalid date ‘@2147483648’