xkcd: Y2K and 2038.
https://xkcd.com/2697/
It shouldn't cost more than a trillion dollars or two to investigate this.
Explained at:
https://www.explainxkcd.com/wiki/index.php/2697:_Y2K_and_2038
Lynn McGuire <lynnmc...@gmail.com> schrieb:.
xkcd: Y2K and 2038
https://xkcd.com/2697/
It shouldn't cost more than a trillion dollars or two to investigate this.The switchover to 64-bit systems should have done this. Not sure
that this cost a trillion dollars, but computers usually have a
limited lifetime, so they had to be replaced anyway.
xkcd: Y2K and 2038
https://xkcd.com/2697/
It shouldn't cost more than a trillion dollars or two to investigate this.
..
Porting software to 64 bit is a tremendous work for most software.
And how much of that software uses time_t?
Many compilers, and probably other programs, output a listing file
with the date on top.
It would be interesting to see which current compilers still do this.
VS Fortran probably still does, but it is stuck at FORTRAN 77,
and I can hardly call that "current".
None of the UNIX-oriented compilers do (the tradition was always to
be as quiet as possible), and also not Windows compilers. gfortran
does not even have an option to produce a source listing.
On Saturday, November 12, 2022 at 8:05:19 AM UTC-8, Scott Lurndal wrote: (snip)
And how much of that software uses time_t?
I suspect that a lot of software uses time_t, but more important,
is where it uses it.
Many compilers, and probably other programs, output a listing file
with the date on top.
On Saturday, November 12, 2022 at 11:30:18 AM UTC-8, Thomas Koenig wrote:
None of the UNIX-oriented compilers do (the tradition was always to
be as quiet as possible), and also not Windows compilers. gfortran
does not even have an option to produce a source listing.
I haven't thought about it so recently. I thought the usual Unix
compilers would do it, but not by default.
It seems that gcc has options starting with --fdump
to generate various files with (hopefully) useful information,
and which might have dates in them.
The real problem is going to be 32-bit (or smaller) embedded systems
whose software can't be updated. On the other hand, a lot of such
systems probably don't care what time it is.
My contribution to the 2038 problem:
On the other hand, a lot of such
systems probably don't care what time it is.
Small embedded systems which also track the date will generally not do
so using Unix epoch timestamps - it's a lot easier to hold a structure
with second, minute, hour, day, month, year fields and update it. That
avoids all the mess of locales and time and date conversions.
An unsigned time_t makes it impossible to represent times before 1970.
Not all software is going to care about that, but in my opinion it's
an unacceptable price.
On Monday, November 14, 2022 at 1:09:40 AM UTC-8, David Brown wrote:
(snip)
Small embedded systems which also track the date will generally not do
so using Unix epoch timestamps - it's a lot easier to hold a structure
with second, minute, hour, day, month, year fields and update it. That
avoids all the mess of locales and time and date conversions.
Reminds me that I have a sprinkler timer that you program with the year.
It needs the year because you can set it to water on even or odd days,
and so has to get leap years right.
But if it watered on the wrong day, it wouldn't be the worst thing.
You can program it by week days, then it doesn't even need the month,
but you still have to set year and month.
On 11/12/2022 1:36 AM, Thomas Koenig wrote:.
Lynn McGuire <lynnmc...@gmail.com> schrieb:
xkcd: Y2K and 2038
https://xkcd.com/2697/
It shouldn't cost more than a trillion dollars or two to investigate this.
The switchover to 64-bit systems should have done this. Not sureMost software is still 32 bit. Having the operating system as 64 bit
that this cost a trillion dollars, but computers usually have a
limited lifetime, so they had to be replaced anyway.
helps but it does not solve the problem of the 32 bit software running
on it. An unsigned 32 bit integer only gets us to 2106.
https://en.wikipedia.org/wiki/Year_2038_problem.
Porting software to 64 bit is a tremendous work for most software.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 159 |
Nodes: | 16 (0 / 16) |
Uptime: | 99:06:38 |
Calls: | 3,209 |
Files: | 10,563 |
Messages: | 3,009,783 |