News for hackers. Stuff that matters.
Re:Nobody ever gets credit for fixing problems that never ha... by IshKebab on Thursday February 22, 2024 @05:37PM (#39474297)
I still don't quite buy that. Surely it's because computers mostly use epoch time for dates, not dd/mm/yy?

Guess we'll find out in 2038.

Re:Nobody ever gets credit for fixing problems that never ha... by IggleSniggle on Thursday February 22, 2024 @08:12PM (#39475637)
That's not what I remember programs looking like. You would have counters that went to 99 and no more because the UI wouldn't accommodate another digit, and programmers didn't know what they were doing, and figured it would be clearer if the software reflected its UI and couldn't handle over 99 at all, invalid UI means unrepresentable state.

Lots of stuff didn't care about the day, too, like you'd get 0997 and that meant September 1st 1997 because the first (or last) of the month was inferred, and you'd get goofy logic around year++ where you add 100 years whenever you want to increment the month, and the whole thing is written as a modulo 1200 but whenever the date is about to be 0000 you look at what's stored in year instead and add one to it instead of 100, because that way you have less variables to allocate and every "little bit" counts.

Everyone knows now, but lots of people writing programs didn't have any prior art, they were just good at messing with computers and sort of fell into programming by accident.

Re:Nobody ever gets credit for fixing problems that never ha... by xcv123 on Thursday February 22, 2024 @05:51PM (#39474450)
Many old programs written last century did not use epoch time.

https://en.wikipedia.org/wiki/Year_2000_problem#On_1_January...

Re:Nobody ever gets credit for fixing problems that never ha... by DinaCoder99 on Thursday February 22, 2024 @08:38PM (#39475825)
It's worth noting that most of the programs affected would not be the ones people used on their private pc.
Re:Nobody ever gets credit for fixing problems that never ha... by contact9879 on Thursday February 22, 2024 @05:45PM (#39474381)
Now they do at least
Re:Nobody ever gets credit for fixing problems that never ha... by IshKebab on Friday February 23, 2024 @08:38AM (#39480414)
They did then as well. I remember before 2000 people saying it wasn't going to be a big issue due to this.
Re:Nobody ever gets credit for fixing problems that never ha... by svachalek on Friday February 23, 2024 @01:25PM (#39484282)
"Most" programs used epoch time, like video games. The minority that didn't were the big, stable, old programs that ran on big computers. Things like payroll and flight schedules.
Re:Nobody ever gets credit for fixing problems that never ha... by cornellwright on Thursday February 22, 2024 @10:44PM (#39476700)
Interesting that everyone is responding to the first half of your comment. I think 2038 is going to be more interesting than Y2K...

https://en.wikipedia.org/wiki/Year_2038_problem

Re:Nobody ever gets credit for fixing problems that never ha... by tempaway11722 on Friday February 23, 2024 @05:49AM (#39479100)
It was also to do with how dates were stored in very old databases that were conceived in the 70s when storage was at a premium - a lot of them just used two digits for year.