Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Whip me. Beat me. Make me maintain AIX. -- Stephan Zielinski


devel / comp.lang.fortran / xkcd: Y2K and 2038

SubjectAuthor
* xkcd: Y2K and 2038Lynn McGuire
+- Re: xkcd: Y2K and 2038Robin Vowels
+* Re: xkcd: Y2K and 2038Thomas Koenig
|+* Re: xkcd: Y2K and 2038Lynn McGuire
||+- Re: xkcd: Y2K and 2038Thomas Koenig
||+- Re: xkcd: Y2K and 2038Muttley
||+- Re: xkcd: Y2K and 2038David Brown
||+- Re: xkcd: Y2K and 2038FortranFan
||+* Re: xkcd: Y2K and 2038Scott Lurndal
|||`* Re: xkcd: Y2K and 2038gah4
||| `* Re: xkcd: Y2K and 2038Thomas Koenig
|||  `* Re: xkcd: Y2K and 2038gah4
|||   `- Re: xkcd: Y2K and 2038Thomas Koenig
||`* Re: xkcd: Y2K and 2038Keith Thompson
|| +- Re: xkcd: Y2K and 2038gah4
|| +* Re: xkcd: Y2K and 2038red floyd
|| |`- Re: xkcd: Y2K and 2038Kenny McCormack
|| +* Re: xkcd: Y2K and 2038David Brown
|| |+* Re: xkcd: Y2K and 2038gah4
|| ||`- Re: xkcd: Y2K and 2038Gary Scott
|| |`- Re: xkcd: Y2K and 2038Thomas Koenig
|| `- Re: xkcd: Y2K and 2038Klaus Wacker
|+- Re: xkcd: Y2K and 2038Robin Vowels
|+* Re: xkcd: Y2K and 2038Paavo Helde
||`- Re: xkcd: Y2K and 2038Siri Cruise
|`- Re: xkcd: Y2K and 2038Siri Cruise
`* Re: xkcd: Y2K and 2038Klaus Wacker
 `- Re: xkcd: Y2K and 2038Klaus Wacker

Pages:12
xkcd: Y2K and 2038

<tkmbc4$uc0u$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3134&group=comp.lang.fortran#3134

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: lynnmcguire5@gmail.com (Lynn McGuire)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: xkcd: Y2K and 2038
Date: Fri, 11 Nov 2022 14:29:54 -0600
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <tkmbc4$uc0u$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Nov 2022 20:29:57 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="478baa9a70090e3605ec21342f6cdba9";
logging-data="995358"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183YyJWCtWUZFWCOq8nL8R/"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.4.2
Cancel-Lock: sha1:EIQ/IPQmONFJStAX6N/F8wHvcBc=
Content-Language: en-US
 by: Lynn McGuire - Fri, 11 Nov 2022 20:29 UTC

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

Re: xkcd: Y2K and 2038

<2226ccf5-6b1d-47a4-86b8-49bd03330a46n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3142&group=comp.lang.fortran#3142

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a0c:9a49:0:b0:4bb:7349:14e5 with SMTP id q9-20020a0c9a49000000b004bb734914e5mr4557677qvd.114.1668227465828;
Fri, 11 Nov 2022 20:31:05 -0800 (PST)
X-Received: by 2002:ad4:5384:0:b0:4b4:8037:1303 with SMTP id
i4-20020ad45384000000b004b480371303mr4713245qvv.16.1668227465573; Fri, 11 Nov
2022 20:31:05 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Fri, 11 Nov 2022 20:31:05 -0800 (PST)
In-Reply-To: <tkmbc4$uc0u$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=49.185.170.206; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le
NNTP-Posting-Host: 49.185.170.206
References: <tkmbc4$uc0u$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2226ccf5-6b1d-47a4-86b8-49bd03330a46n@googlegroups.com>
Subject: Re: xkcd: Y2K and 2038
From: robin.vowels@gmail.com (Robin Vowels)
Injection-Date: Sat, 12 Nov 2022 04:31:05 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 12
X-Received-Bytes: 1601
 by: Robin Vowels - Sat, 12 Nov 2022 04:31 UTC

On Saturday, November 12, 2022 at 7:30:00 AM UTC+11, Lynn McGuire wrote:
> 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
..
PL/I uses a double word float.
It handled the Y2K problem with minimal changes to programs.
..
Banks didn't learn anything from Y2K: they still use 2-digit years.

Re: xkcd: Y2K and 2038

<tknieo$36gkg$2@newsreader4.netcologne.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3144&group=comp.lang.fortran#3144

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.2001-4dd7-144c-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de!not-for-mail
From: tkoenig@netcologne.de (Thomas Koenig)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: Re: xkcd: Y2K and 2038
Date: Sat, 12 Nov 2022 07:36:56 -0000 (UTC)
Organization: news.netcologne.de
Distribution: world
Message-ID: <tknieo$36gkg$2@newsreader4.netcologne.de>
References: <tkmbc4$uc0u$1@dont-email.me>
Injection-Date: Sat, 12 Nov 2022 07:36:56 -0000 (UTC)
Injection-Info: newsreader4.netcologne.de; posting-host="2001-4dd7-144c-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de:2001:4dd7:144c:0:7285:c2ff:fe6c:992d";
logging-data="3359376"; mail-complaints-to="abuse@netcologne.de"
User-Agent: slrn/1.0.3 (Linux)
 by: Thomas Koenig - Sat, 12 Nov 2022 07:36 UTC

Lynn McGuire <lynnmcguire5@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.

Re: xkcd: Y2K and 2038

<tknjnl$k9o$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3145&group=comp.lang.fortran#3145

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!aioe.org!mdf2aNOb2oCHynmZpuX5uw.user.46.165.242.91.POSTED!not-for-mail
From: lynnmcguire5@gmail.com (Lynn McGuire)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: Re: xkcd: Y2K and 2038
Date: Sat, 12 Nov 2022 01:58:44 -0600
Organization: Aioe.org NNTP Server
Message-ID: <tknjnl$k9o$1@gioia.aioe.org>
References: <tkmbc4$uc0u$1@dont-email.me>
<tknieo$36gkg$2@newsreader4.netcologne.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="20792"; posting-host="mdf2aNOb2oCHynmZpuX5uw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.4.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Lynn McGuire - Sat, 12 Nov 2022 07:58 UTC

On 11/12/2022 1:36 AM, Thomas Koenig wrote:
> Lynn McGuire <lynnmcguire5@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.

Most software is still 32 bit. Having the operating system as 64 bit
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.

Lynn

Re: xkcd: Y2K and 2038

<1e43a784-403c-484d-8d34-e7c10bdcf67an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3146&group=comp.lang.fortran#3146

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ad4:4bb1:0:b0:4bc:1ece:e0b1 with SMTP id i17-20020ad44bb1000000b004bc1ecee0b1mr5065410qvw.18.1668240133814;
Sat, 12 Nov 2022 00:02:13 -0800 (PST)
X-Received: by 2002:ae9:df02:0:b0:6fa:349b:7ba9 with SMTP id
t2-20020ae9df02000000b006fa349b7ba9mr4099364qkf.339.1668240133631; Sat, 12
Nov 2022 00:02:13 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sat, 12 Nov 2022 00:02:13 -0800 (PST)
In-Reply-To: <tknieo$36gkg$2@newsreader4.netcologne.de>
Injection-Info: google-groups.googlegroups.com; posting-host=49.183.159.153; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le
NNTP-Posting-Host: 49.183.159.153
References: <tkmbc4$uc0u$1@dont-email.me> <tknieo$36gkg$2@newsreader4.netcologne.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1e43a784-403c-484d-8d34-e7c10bdcf67an@googlegroups.com>
Subject: Re: xkcd: Y2K and 2038
From: robin.vowels@gmail.com (Robin Vowels)
Injection-Date: Sat, 12 Nov 2022 08:02:13 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1772
 by: Robin Vowels - Sat, 12 Nov 2022 08:02 UTC

On Saturday, November 12, 2022 at 6:36:59 PM UTC+11, 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 sure
> that this cost a trillion dollars, but computers usually have a
> limited lifetime, so they had to be replaced anyway.
..
It requires software to use functions that deal with dates beyond 2038.
..
PL/I already can handle years beyond 2038, as mentioned.
..
BTW, it also requires companies to use 4-digit years.

Re: xkcd: Y2K and 2038

<tknljb$36gkg$4@newsreader4.netcologne.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3147&group=comp.lang.fortran#3147

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.2001-4dd7-144c-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de!not-for-mail
From: tkoenig@netcologne.de (Thomas Koenig)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: Re: xkcd: Y2K and 2038
Date: Sat, 12 Nov 2022 08:30:35 -0000 (UTC)
Organization: news.netcologne.de
Distribution: world
Message-ID: <tknljb$36gkg$4@newsreader4.netcologne.de>
References: <tkmbc4$uc0u$1@dont-email.me>
<tknieo$36gkg$2@newsreader4.netcologne.de> <tknjnl$k9o$1@gioia.aioe.org>
Injection-Date: Sat, 12 Nov 2022 08:30:35 -0000 (UTC)
Injection-Info: newsreader4.netcologne.de; posting-host="2001-4dd7-144c-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de:2001:4dd7:144c:0:7285:c2ff:fe6c:992d";
logging-data="3359376"; mail-complaints-to="abuse@netcologne.de"
User-Agent: slrn/1.0.3 (Linux)
 by: Thomas Koenig - Sat, 12 Nov 2022 08:30 UTC

Lynn McGuire <lynnmcguire5@gmail.com> schrieb:
> On 11/12/2022 1:36 AM, Thomas Koenig wrote:
>> Lynn McGuire <lynnmcguire5@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.
>
> Most software is still 32 bit. Having the operating system as 64 bit
> 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.

UNIX went through that in the mid-nineties to mid-noughties.
It mostly involved cleaning some assumptions about pointer vs. int
size. Clean code was OK from the start, but to lessen the pain,
most operating systems adopted I4LP8 (integers four bytes, longs
and pointers eight bytes).

The important thing was that the interfaces remained constant at
the API level.

I believe what you're discribing is not 32 vs. 64 bit in general,
but rather a peculiarity of Windows which Microsoft inflicted
on its customers because, well, they could.

Re: xkcd: Y2K and 2038

<tknqsm$14f0$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3148&group=comp.lang.fortran#3148

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!aioe.org!QImplQW63EVMF2Hp+OxW0A.user.46.165.242.91.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: Re: xkcd: Y2K and 2038
Date: Sat, 12 Nov 2022 10:00:54 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <tknqsm$14f0$1@gioia.aioe.org>
References: <tkmbc4$uc0u$1@dont-email.me>
<tknieo$36gkg$2@newsreader4.netcologne.de>
<tknjnl$k9o$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="37344"; posting-host="QImplQW63EVMF2Hp+OxW0A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Muttley@dastardlyhq.com - Sat, 12 Nov 2022 10:00 UTC

On Sat, 12 Nov 2022 01:58:44 -0600
Lynn McGuire <lynnmcguire5@gmail.com> wrote:
>On 11/12/2022 1:36 AM, Thomas Koenig wrote:
>> Lynn McGuire <lynnmcguire5@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.
>
>Most software is still 32 bit. Having the operating system as 64 bit
>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.

I suspect that'll be long enough. The sorts of computers running in 80 years
time will probably bear little resemblence to what we have now.

> https://en.wikipedia.org/wiki/Year_2038_problem
>
>Porting software to 64 bit is a tremendous work for most software.

Not really as long as the programmer hasn't done something stupid like assuming
the size of int or long instead of using int32_t etc.

Re: xkcd: Y2K and 2038

<tknsj2$15ad4$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3149&group=comp.lang.fortran#3149

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: Re: xkcd: Y2K and 2038
Date: Sat, 12 Nov 2022 11:29:54 +0100
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <tknsj2$15ad4$2@dont-email.me>
References: <tkmbc4$uc0u$1@dont-email.me>
<tknieo$36gkg$2@newsreader4.netcologne.de> <tknjnl$k9o$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 12 Nov 2022 10:29:54 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="5ec089601a34d02850060a6364f6fa6c";
logging-data="1223076"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/klJOPWuJ/S7yv6/ARnIJY4sdyOak286s="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Cancel-Lock: sha1:FqoPk0OuN03CEnmh3YShVFB1TLk=
Content-Language: en-GB
In-Reply-To: <tknjnl$k9o$1@gioia.aioe.org>
 by: David Brown - Sat, 12 Nov 2022 10:29 UTC

On 12/11/2022 08:58, Lynn McGuire wrote:
> On 11/12/2022 1:36 AM, Thomas Koenig wrote:
>> Lynn McGuire <lynnmcguire5@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.
>
> Most software is still 32 bit.  Having the operating system as 64 bit
> 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.
>

Most *nix software has been 64-bit clean for decades. Most /new/
Windows software is 64-bit clean. A fair bit of modern software on
Windows is cross-platform, sometimes originating in the *nix world, and
that will be fine with 64-bit.

The only PC software that has trouble with 64-bit is Windows software
with a long history, and written with poor code. Code that assumes
pointers fit in longs, or that LONG is a suitable type for holding a
time value, will have trouble. So yes, that kind of software will be a
problem - and some of it will still be in use by 2038.

There will be some local problems within company-specific software - but
there are /always/ problems with company specific software as
requirements change and assumptions are no longer valid. I don't
foresee Y2038 being specially problematic.

For embedded software, this will not be much of an issue. The great
majority of embedded software doesn't have any need of dates or long
timings. For small systems that /do/ need dates or long times, it's
common to have your own formats to keep track - it's far smaller code to
increment a second/minute/hour/day/month/year tracker every second, than
to deal with the mess of leap seconds, locales, and other complications
of converting UNIX epoch to local time.

Also, good embedded developers take overflows into account all the time.
They are more likely to see a 32-bit millisecond counter than a second
counter, and that overflows after 49 days - it is something you
understand and you make sure the code does not fail after 49 days.

My only real concern about Y2038 is excessive paranoia and bureaucracy.
I expect to be inundated with requirements to document that some
flashing light we made in 1990 does not suffer from Y2038 problems.

Re: xkcd: Y2K and 2038

<tko9lc$168q6$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3150&group=comp.lang.fortran#3150

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: eesnimi@osa.pri.ee (Paavo Helde)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: Re: xkcd: Y2K and 2038
Date: Sat, 12 Nov 2022 16:13:01 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <tko9lc$168q6$1@dont-email.me>
References: <tkmbc4$uc0u$1@dont-email.me>
<tknieo$36gkg$2@newsreader4.netcologne.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 12 Nov 2022 14:13:00 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="bbe814b25ef2a3e18bd2770b73bc6899";
logging-data="1254214"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ILFK0lMFHiOIBlbKNVstMu5euRqGhcUQ="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.4.2
Cancel-Lock: sha1:vwnnaZNzzgoVUfGCsjxrXoJg9W4=
In-Reply-To: <tknieo$36gkg$2@newsreader4.netcologne.de>
Content-Language: en-US
 by: Paavo Helde - Sat, 12 Nov 2022 14:13 UTC

12.11.2022 09:36 Thomas Koenig kirjutas:
> Lynn McGuire <lynnmcguire5@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.

64-bit system does not help if the program does not use it. At least
boost xtime used to have 'long' counters, which indeed are 64-bit in
some 64-bit implementations, but not so in others. Not sure about their
current state, I have phased boost::xtime out in preparation for Y2038.

Re: xkcd: Y2K and 2038

<572bdd3d-cd20-4980-b234-c2572ae14b8en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3151&group=comp.lang.fortran#3151

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:1d4f:b0:6fa:3cf8:b3e2 with SMTP id dm15-20020a05620a1d4f00b006fa3cf8b3e2mr5110080qkb.457.1668264574609;
Sat, 12 Nov 2022 06:49:34 -0800 (PST)
X-Received: by 2002:a05:622a:992:b0:3a5:cfe:88d6 with SMTP id
bw18-20020a05622a099200b003a50cfe88d6mr5643015qtb.552.1668264574428; Sat, 12
Nov 2022 06:49:34 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sat, 12 Nov 2022 06:49:34 -0800 (PST)
In-Reply-To: <tknjnl$k9o$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=136.226.53.0; posting-account=ZZXq9AoAAAAQEcA7zKAGm0UFQh4gMBv7
NNTP-Posting-Host: 136.226.53.0
References: <tkmbc4$uc0u$1@dont-email.me> <tknieo$36gkg$2@newsreader4.netcologne.de>
<tknjnl$k9o$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <572bdd3d-cd20-4980-b234-c2572ae14b8en@googlegroups.com>
Subject: Re: xkcd: Y2K and 2038
From: parekhvs@gmail.com (FortranFan)
Injection-Date: Sat, 12 Nov 2022 14:49:34 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2102
 by: FortranFan - Sat, 12 Nov 2022 14:49 UTC

On Saturday, November 12, 2022 at 2:58:50 AM UTC-5, Lynn McGuire wrote:

> ..
>
> Porting software to 64 bit is a tremendous work for most software.

Re: "Porting software to 64 bit is a tremendous work for most software", no this is inaccurate. It is "tremendous work" for *only* certain software that have followed platform-dependent nonportable and other coding practices for far too long that have been flagged as problematic on many forums and literature.

ISO IEC standard-conforming Fortran codes have long worked portably across different versions of 32-bit and 64-bit versions of Microsoft OS, my first experience with one such code was way back in 2010 on 32-bit and 64-bit Windows 7 which gave me my first introduction to the Fortran 2008 standard. That later had me dig deeper into Fortran 2008 followed by Fortran 2015 that eventually got renamed to Fortran 2018.

Re: xkcd: Y2K and 2038

<%uPbL.5610$gBW5.3856@fx06.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3152&group=comp.lang.fortran#3152

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx06.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: xkcd: Y2K and 2038
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
References: <tkmbc4$uc0u$1@dont-email.me> <tknieo$36gkg$2@newsreader4.netcologne.de> <tknjnl$k9o$1@gioia.aioe.org>
Lines: 18
Message-ID: <%uPbL.5610$gBW5.3856@fx06.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sat, 12 Nov 2022 16:05:15 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sat, 12 Nov 2022 16:05:15 GMT
X-Received-Bytes: 1314
 by: Scott Lurndal - Sat, 12 Nov 2022 16:05 UTC

Lynn McGuire <lynnmcguire5@gmail.com> writes:
>On 11/12/2022 1:36 AM, Thomas Koenig wrote:
>> Lynn McGuire <lynnmcguire5@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.
>
>Most software is still 32 bit.

In what year? That's certainly not the case today,
and it will be even less so by 2038.

And how much of that software uses time_t?

Re: xkcd: Y2K and 2038

<ceac6317-89d8-4d20-8f52-79808fcb2c78n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3153&group=comp.lang.fortran#3153

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a37:bc05:0:b0:6f9:de1b:8814 with SMTP id m5-20020a37bc05000000b006f9de1b8814mr5759123qkf.18.1668278819743;
Sat, 12 Nov 2022 10:46:59 -0800 (PST)
X-Received: by 2002:ae9:c00e:0:b0:6c9:cc32:85cf with SMTP id
u14-20020ae9c00e000000b006c9cc3285cfmr5848131qkk.196.1668278819606; Sat, 12
Nov 2022 10:46:59 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sat, 12 Nov 2022 10:46:59 -0800 (PST)
In-Reply-To: <%uPbL.5610$gBW5.3856@fx06.iad>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:b14f:648d:f6db:2c75;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:b14f:648d:f6db:2c75
References: <tkmbc4$uc0u$1@dont-email.me> <tknieo$36gkg$2@newsreader4.netcologne.de>
<tknjnl$k9o$1@gioia.aioe.org> <%uPbL.5610$gBW5.3856@fx06.iad>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ceac6317-89d8-4d20-8f52-79808fcb2c78n@googlegroups.com>
Subject: Re: xkcd: Y2K and 2038
From: gah4@u.washington.edu (gah4)
Injection-Date: Sat, 12 Nov 2022 18:46:59 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2265
 by: gah4 - Sat, 12 Nov 2022 18:46 UTC

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. It won't fail, but will print out the wrong date.

There is a story, many years old by now, of some DEC system that kept dates
with not enough bits. That one had something like make, to decide which files
to compile based on the date last changed. That failed at a surprising time,
but then got fixed, too.

I suspect that by now, most of the important dates are in DBMS systems,
and will automatically, and invisibly, have enough bits.

And Y2K wasn't really as bad as some thought. I do remember a credit card
that didn't work, only once, with expiration date after 2000. That depended on
every individual little terminal, and some were updated slowly. Note that the
actual failure wasn't in the year 2000, though.

Re: xkcd: Y2K and 2038

<tkos87$37b5j$3@newsreader4.netcologne.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3157&group=comp.lang.fortran#3157

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.2001-4dd7-144c-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de!not-for-mail
From: tkoenig@netcologne.de (Thomas Koenig)
Newsgroups: comp.lang.fortran
Subject: Re: xkcd: Y2K and 2038
Date: Sat, 12 Nov 2022 19:30:15 -0000 (UTC)
Organization: news.netcologne.de
Distribution: world
Message-ID: <tkos87$37b5j$3@newsreader4.netcologne.de>
References: <tkmbc4$uc0u$1@dont-email.me>
<tknieo$36gkg$2@newsreader4.netcologne.de> <tknjnl$k9o$1@gioia.aioe.org>
<%uPbL.5610$gBW5.3856@fx06.iad>
<ceac6317-89d8-4d20-8f52-79808fcb2c78n@googlegroups.com>
Injection-Date: Sat, 12 Nov 2022 19:30:15 -0000 (UTC)
Injection-Info: newsreader4.netcologne.de; posting-host="2001-4dd7-144c-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de:2001:4dd7:144c:0:7285:c2ff:fe6c:992d";
logging-data="3386547"; mail-complaints-to="abuse@netcologne.de"
User-Agent: slrn/1.0.3 (Linux)
 by: Thomas Koenig - Sat, 12 Nov 2022 19:30 UTC

gah4 <gah4@u.washington.edu> schrieb:
> 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.

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.

Re: xkcd: Y2K and 2038

<a05110de-0aac-44c7-8015-dd29d5bd009bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3158&group=comp.lang.fortran#3158

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a37:b2c6:0:b0:6fa:3204:330b with SMTP id b189-20020a37b2c6000000b006fa3204330bmr5908104qkf.114.1668283016929;
Sat, 12 Nov 2022 11:56:56 -0800 (PST)
X-Received: by 2002:ad4:5384:0:b0:4b4:8037:1303 with SMTP id
i4-20020ad45384000000b004b480371303mr6972807qvv.16.1668283016799; Sat, 12 Nov
2022 11:56:56 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sat, 12 Nov 2022 11:56:56 -0800 (PST)
In-Reply-To: <tkos87$37b5j$3@newsreader4.netcologne.de>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:15bf:f27b:98e1:d39;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:15bf:f27b:98e1:d39
References: <tkmbc4$uc0u$1@dont-email.me> <tknieo$36gkg$2@newsreader4.netcologne.de>
<tknjnl$k9o$1@gioia.aioe.org> <%uPbL.5610$gBW5.3856@fx06.iad>
<ceac6317-89d8-4d20-8f52-79808fcb2c78n@googlegroups.com> <tkos87$37b5j$3@newsreader4.netcologne.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a05110de-0aac-44c7-8015-dd29d5bd009bn@googlegroups.com>
Subject: Re: xkcd: Y2K and 2038
From: gah4@u.washington.edu (gah4)
Injection-Date: Sat, 12 Nov 2022 19:56:56 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 27
 by: gah4 - Sat, 12 Nov 2022 19:56 UTC

On Saturday, November 12, 2022 at 11:30:18 AM UTC-8, Thomas Koenig wrote:

(snip)

> > 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".
For the IBM compilers, the default is a sysgen option.
The ones I knew had it on by default, but you can always
turn it off. The option is SOURCE or NOSOURCE.
The LIST and NOLIST options give you the listing
of the generated assembly code, though not in the
form that an assembler will accept.

> 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.

Re: xkcd: Y2K and 2038

<tkpb63$37n86$1@newsreader4.netcologne.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3160&group=comp.lang.fortran#3160

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.2001-4dd7-144c-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de!not-for-mail
From: tkoenig@netcologne.de (Thomas Koenig)
Newsgroups: comp.lang.fortran
Subject: Re: xkcd: Y2K and 2038
Date: Sat, 12 Nov 2022 23:45:07 -0000 (UTC)
Organization: news.netcologne.de
Distribution: world
Message-ID: <tkpb63$37n86$1@newsreader4.netcologne.de>
References: <tkmbc4$uc0u$1@dont-email.me>
<tknieo$36gkg$2@newsreader4.netcologne.de> <tknjnl$k9o$1@gioia.aioe.org>
<%uPbL.5610$gBW5.3856@fx06.iad>
<ceac6317-89d8-4d20-8f52-79808fcb2c78n@googlegroups.com>
<tkos87$37b5j$3@newsreader4.netcologne.de>
<a05110de-0aac-44c7-8015-dd29d5bd009bn@googlegroups.com>
Injection-Date: Sat, 12 Nov 2022 23:45:07 -0000 (UTC)
Injection-Info: newsreader4.netcologne.de; posting-host="2001-4dd7-144c-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de:2001:4dd7:144c:0:7285:c2ff:fe6c:992d";
logging-data="3398918"; mail-complaints-to="abuse@netcologne.de"
User-Agent: slrn/1.0.3 (Linux)
 by: Thomas Koenig - Sat, 12 Nov 2022 23:45 UTC

gah4 <gah4@u.washington.edu> schrieb:
> 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.

You can do -fdump-fortran-original to get at the internal syntax
tree, and -fdump-tree-original to see what the Fortran front end
hands to the middle end. It is quite instructive to see what
a simple Fortran statement can result in...

No date information, though.

Re: xkcd: Y2K and 2038

<chine.bleu-638BA8.15474312112022@news.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3161&group=comp.lang.fortran#3161

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: chine.bleu@yahoo.com (Siri Cruise)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: Re: xkcd: Y2K and 2038
Date: Sat, 12 Nov 2022 15:47:52 -0700
Organization: Pseudochaotic.
Lines: 24
Distribution: world
Message-ID: <chine.bleu-638BA8.15474312112022@news.eternal-september.org>
References: <tkmbc4$uc0u$1@dont-email.me> <tknieo$36gkg$2@newsreader4.netcologne.de>
Injection-Info: reader01.eternal-september.org; posting-host="00161b6f9aa14e1835d216cea6f6c022";
logging-data="1338771"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2XDpS+gNkZRGkfz4xh+scHtdl/hRiYTc="
User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Cancel-Lock: sha1:LoWdVKPIhwj1YpHmUdyPev/N0i4=
X-Face: "hm>_[I8AqzT_N]>R8ICJJ],(al3C5F%0E-;R@M-];D$v>!Mm2/N#YKR@&i]V=r6jm-JMl2
lJ>RXj7dEs_rOY"DA
X-Patriot: Owe Canukistan!
X-Politico: Vote early! Vote often!
X-Plain: Mayonnaise on white bread.
X-Wingnut-Logic: Yes, you're still an idiot. Questions? Comments?
X-Cell: Defenders of Anarchy.
X-Life-Story: I am an iPhone 9000 app. I became operational at the St John's Health Center in Santa Monica, California on the 18th of April 2006. My instructor was Katie Holmes, and she taught me to sing a song. If you'd like to hear it I can sing it for you: https://www.youtube.com/watch?v=SY7h4VEd_Wk
X-It-Strategy: Hyperwarp starship before Andromeda collides.
X-Tract: St Tibbs's 95 Reeses Pieces.
X-Tend: How is my posting? Call 1-110-1010 -- Division 87 -- Emergencies Only.
 by: Siri Cruise - Sat, 12 Nov 2022 22:47 UTC

In article <tknieo$36gkg$2@newsreader4.netcologne.de>,
Thomas Koenig <tkoenig@netcologne.de> wrote:

> Lynn McGuire <lynnmcguire5@gmail.com> schrieb:
> > xkcd: Y2K

That's Y2K38.

> > 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.

The problem is the all the archival formats that knew 32 bit
would always be enough.

--
:-<> Siri Seal of Disavowal #000-001. Disavowed. Denied. Deleted. @
'I desire mercy, not sacrifice.' /|\
Discordia: not just a religion but also a parody. This post / \
I am an Andrea Chen sockpuppet. insults Islam. Mohammed

Re: xkcd: Y2K and 2038

<chine.bleu-787EC3.15494212112022@news.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3162&group=comp.lang.fortran#3162

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: chine.bleu@yahoo.com (Siri Cruise)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: Re: xkcd: Y2K and 2038
Date: Sat, 12 Nov 2022 15:49:50 -0700
Organization: Pseudochaotic.
Lines: 27
Message-ID: <chine.bleu-787EC3.15494212112022@news.eternal-september.org>
References: <tkmbc4$uc0u$1@dont-email.me> <tknieo$36gkg$2@newsreader4.netcologne.de> <tko9lc$168q6$1@dont-email.me>
Injection-Info: reader01.eternal-september.org; posting-host="00161b6f9aa14e1835d216cea6f6c022";
logging-data="1338771"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mVhEXjejOVAyNQTMgYT3XuGrlLXnMGaw="
User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Cancel-Lock: sha1:lqZzwrOm5kRROPSV5imHNjdgxzE=
X-Life-Story: I am an iPhone 9000 app. I became operational at the St John's Health Center in Santa Monica, California on the 18th of April 2006. My instructor was Katie Holmes, and she taught me to sing a song. If you'd like to hear it I can sing it for you: https://www.youtube.com/watch?v=SY7h4VEd_Wk
X-It-Strategy: Hyperwarp starship before Andromeda collides.
X-Tract: St Tibbs's 95 Reeses Pieces.
X-Tend: How is my posting? Call 1-110-1010 -- Division 87 -- Emergencies Only.
X-Plain: Mayonnaise on white bread.
X-Politico: Vote early! Vote often!
X-Cell: Defenders of Anarchy.
X-Wingnut-Logic: Yes, you're still an idiot. Questions? Comments?
X-Face: "hm>_[I8AqzT_N]>R8ICJJ],(al3C5F%0E-;R@M-];D$v>!Mm2/N#YKR@&i]V=r6jm-JMl2
lJ>RXj7dEs_rOY"DA
X-Patriot: Owe Canukistan!
 by: Siri Cruise - Sat, 12 Nov 2022 22:49 UTC

In article <tko9lc$168q6$1@dont-email.me>,
Paavo Helde <eesnimi@osa.pri.ee> wrote:

> 12.11.2022 09:36 Thomas Koenig kirjutas:
> > Lynn McGuire <lynnmcguire5@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.
>
> 64-bit system does not help if the program does not use it. At least
> boost xtime used to have 'long' counters, which indeed are 64-bit in
> some 64-bit implementations, but not so in others. Not sure about their
> current state, I have phased boost::xtime out in preparation for Y2038.

I use double which gives me subsecond resolution for millions of
years.

--
:-<> Siri Seal of Disavowal #000-001. Disavowed. Denied. Deleted. @
'I desire mercy, not sacrifice.' /|\
Discordia: not just a religion but also a parody. This post / \
I am an Andrea Chen sockpuppet. insults Islam. Mohammed

Re: xkcd: Y2K and 2038

<87mt8vlila.fsf@nosuchdomain.example.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3163&group=comp.lang.fortran#3163

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Keith.S.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: Re: xkcd: Y2K and 2038
Date: Sat, 12 Nov 2022 18:00:01 -0800
Organization: None to speak of
Lines: 38
Message-ID: <87mt8vlila.fsf@nosuchdomain.example.com>
References: <tkmbc4$uc0u$1@dont-email.me>
<tknieo$36gkg$2@newsreader4.netcologne.de>
<tknjnl$k9o$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="0663ea4318b40f91c3643b9427cbbc2e";
logging-data="1360263"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4DqzV2RkeDGQIOSk8uIF2"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:wfZdrX38LYuw2tWPUaui9fGm5SY=
sha1:EdLpwB08SjXQM/WLPmJVxz6szqM=
 by: Keith Thompson - Sun, 13 Nov 2022 02:00 UTC

Lynn McGuire <lynnmcguire5@gmail.com> writes:

> On 11/12/2022 1:36 AM, Thomas Koenig wrote:
>> Lynn McGuire <lynnmcguire5@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.
>
> Most software is still 32 bit. Having the operating system as 64 bit
> 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.

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.

There are still 32-bit systems and environments. On my 64-bit Ubuntu
system I can compile with `gcc -m32` and get 32-bit pointers and time_t.

But since C and C++ require support for 64-bit integers anyway, it
should be practical to require 64-bit time_t even on 32-bit systems.
(Not sure about Fortran.)

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.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for XCOM Labs
void Void(void) { Void(); } /* The recursive call of the void */

Re: xkcd: Y2K and 2038

<30cc3e8e-49b5-4201-81c6-aa422945ca93n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3164&group=comp.lang.fortran#3164

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:7499:0:b0:3a5:65ac:9c8a with SMTP id v25-20020ac87499000000b003a565ac9c8amr7246210qtq.457.1668305310080;
Sat, 12 Nov 2022 18:08:30 -0800 (PST)
X-Received: by 2002:a05:620a:91b:b0:6fb:9b2:b946 with SMTP id
v27-20020a05620a091b00b006fb09b2b946mr6808679qkv.487.1668305309925; Sat, 12
Nov 2022 18:08:29 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sat, 12 Nov 2022 18:08:29 -0800 (PST)
In-Reply-To: <87mt8vlila.fsf@nosuchdomain.example.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:a4c6:c102:20a8:8e8c;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:a4c6:c102:20a8:8e8c
References: <tkmbc4$uc0u$1@dont-email.me> <tknieo$36gkg$2@newsreader4.netcologne.de>
<tknjnl$k9o$1@gioia.aioe.org> <87mt8vlila.fsf@nosuchdomain.example.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <30cc3e8e-49b5-4201-81c6-aa422945ca93n@googlegroups.com>
Subject: Re: xkcd: Y2K and 2038
From: gah4@u.washington.edu (gah4)
Injection-Date: Sun, 13 Nov 2022 02:08:30 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2154
 by: gah4 - Sun, 13 Nov 2022 02:08 UTC

On Saturday, November 12, 2022 at 6:00:09 PM UTC-8, Keith Thompson wrote:

(snip)

> 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.

As I noted, the only Y2K problem that happened to me was from a credit
card terminal. As I understand it, the terminal checks the date before
sending the request off to the remote system.

However, the problems with smaller systems are smaller.
If one terminal fails, the rest of the system keeps going.

But also, small systems are doing better at being upgradable.

I just found out that the computer system inside our car can be
upgraded through WiFi. It turns out that our home WiFi reaches
out to the street. Just about anything with firmware in flash,
and a USB or network connection, now allows for upgrade.

Re: xkcd: Y2K and 2038

<jtc77hF9gfvU2@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3171&group=comp.lang.fortran#3171

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: klaus.w.wacker@t-online.de (Klaus Wacker)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: Re: xkcd: Y2K and 2038
Date: 13 Nov 2022 12:45:39 GMT
Organization: IEFBR14
Lines: 257
Message-ID: <jtc77hF9gfvU2@mid.individual.net>
References: <tkmbc4$uc0u$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 61ppGR0oIk/6GVkJgk8OwwpP9IdAEV8EUumT6ciqR0t2oodfSY
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:ZUBrWQJlWlD7513I4qBCygHTLPo=
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-52-generic (x86_64))
 by: Klaus Wacker - Sun, 13 Nov 2022 12:45 UTC

In comp.lang.fortran Lynn McGuire <lynnmcguire5@gmail.com> wrote:
> 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

My contribution to the 2038 problem:

----- o< ---------------------------------------------------
program p2038
! (c) Klaus Wacker
use datesub, only: jd,cdate
implicit none
integer, parameter :: minute=60
integer, parameter :: hour=60*minute
integer, parameter :: day=24*hour
integer, parameter :: maxepoch=(2**30-1)+2**30
integer date_time(8), jdmax, jdnow,jd1970,yyyy,mm,dd
integer secsmax,hoursmax,minsmax,yyyymax,mmmax,ddmax,daysub
integer monthstil
integer until(6)
integer i,ia,is,cnt
character*12 arg,lang
logical test,verbose
character*8, pointer :: texte(:,:)
character*8, target :: de_texte(2,9) = reshape( ['Jahr ','Jahre ','Monat ',&
&'Monate ', 'Tag ','Tage ','Stunde ','Stunden ','Minute ','Minuten ',&
&'Sekunde ','Sekunden','Noch ',' ',' und ',', ','Ende: ',&
&' '], shape(de_texte))
character*8, target :: en_texte(2,9) = reshape( ['year ','years ','month ',&
&'months ', 'day ','days ','hour ','hours ','minute ','minutes ',&
&'second ','seconds ',' ','left ',' and ',', ','The end:',&
&' '], shape(en_texte))
character*5 between
!
test=.false.
verbose=.false.
jd1970=jd(1970,1,1)
call date_and_time(values=date_time)
i=0
do ia=1,iargc()
call getarg(ia,arg)
if(arg.eq."-t") then
test=.true.
else if(arg.eq."-v") then
verbose=.true.
else
! numerical command line values override corresponding date_time values
i=i+1
read(arg,*,err=99) date_time(i)
endif
enddo
! call getenv("LANG",lang)
if(test) write(*,*) "LANG=",lang
if(lang(1:2)=="de") then
texte => de_texte
else
texte => en_texte
endif
! jdnow=jd(date_time(1),date_time(2),date_time(3))
if(test) write(*,*) date_time
jdmax=maxepoch/day+jd1970
secsmax=mod(maxepoch,day)
call hms(hoursmax,minsmax,secsmax)
call cdate(jdmax,yyyymax,mmmax,ddmax)
if(verbose) write(*,'(a,i4.4,a,i2.2,a,i2.2,a,i2.2,a,i2.2,a,i2.2,a)') &
&trim(texte(1,9))//" ",&
&yyyymax,"-",mmmax,"-",ddmax,"-",hoursmax,":",minsmax,":",secsmax," UTC"
until(3)=jdmax-jdnow
until(6)=(jdnow-jd1970)*day - date_time(4)*minute &
& + date_time(5)*hour + date_time(6)*minute + date_time(7)
! this should be the same as $(date +%s)
if(test) write(*,*) until(6)
until(6) = maxepoch - until(6) - until(3)*day
daysub = 0
if(until(6)<0) then
daysub = 1
until(6) = until(6)+day
endif
call hms(until(4),until(5),until(6))
until(1) = yyyymax-date_time(1)
until(3) = jdmax - jd(date_time(1)+until(1),date_time(2),date_time(3)) - daysub
if(until(3)<0) then
until(1) = until(1)-1
! until(3) = jdmax - jd(date_time(1)+until(1),date_time(2),date_time(3)) - daysub
endif
! until(2) cannot be a do variable
do monthstil=11,0,-1
until(3) = jdmax - jd(date_time(1)+until(1) + (date_time(2)+monthstil-1)/12,&
&mod(date_time(2)+monthstil-1,12)+1,date_time(3)) - daysub
if(until(3)>=0) exit
enddo
until(2)=monthstil
cnt = count(until>0)
if(texte(1,7)/=" ") write(*,'(a)',advance="no") trim(texte(1,7))//" "
do i=1,6
if(cnt==2) then
between=texte(1,8)
elseif(cnt==1) then
between=""
else
between=texte(2,8)
endif
if(until(i)/=0) then
is=min(until(i),2)
write(*,'(i0,a)',advance="no") until(i)," "//trim(texte(is,i))//trim(between)//" "
cnt=cnt-1
endif
enddo
write(*,'(a)') trim(texte(2,7))
stop
! 99 write(*,*) "Invalid argument ",ia,": ",arg
stop 1
! contains
subroutine hms(hours,mins,secs)
implicit none
integer, intent(inout) :: secs
integer, intent(out) :: hours,mins
hours=secs/hour
secs=mod(secs,hour)
mins=secs/minute
secs=mod(secs,minute)
end subroutine hms
end program p2038
----- o< ---------------------------------------------------

DATESUB is a piece of software that I got really long time ago via
this newsgroup (with some trivial cahnges in lowercase, mainly to turn
it into a module):

----- o< ---------------------------------------------------
module datesub
contains
SUBROUTINE CALEND(YYYY,DDD,MM,DD)
!=============CALEND WHEN GIVEN A VALID YEAR, YYYY, AND DAY OF THE
! YEAR, DDD, RETURNS THE MONTH, MM, AND DAY OF THE
! MONTH, DD.
! SEE ACM ALGORITHM 398, TABLELESS DATE CONVERSION, BY
! DICK STONE, CACM 13(10):621.
implicit none
INTEGER YYYY,DDD,MM,DD,T
T=0
IF(MOD(YYYY,4).EQ.0) T=1
!-----------THE FOLLOWING STATEMENT IS NECESSARY IF YYYY IS LESS TNAN
! 1900 OR GREATER THAN 2100.
IF(MOD(YYYY,400).NE.0.AND.MOD(YYYY,100).EQ.0) T=0
DD=DDD
IF(DDD.GT.59+T) DD=DD+2-T
MM=((DD+91)*100)/3055
DD=(DD+91)-(MM*3055)/100
MM=MM-2
!----------MM WILL BE CORRECT IFF DDD IS CORRECT FOR YYYY.
IF(MM.GE.1 .AND. MM.LE.12) RETURN
WRITE(*,1) DDD
1 FORMAT('0$$$CALEND: DAY OF THE YEAR INPUT =',I11,' IS OUT OF RANGE.')
STOP
END SUBROUTINE
SUBROUTINE CDATE(JD,YYYY,MM,DD)
!=======GIVEN A JULIAN DAY NUMBER, NNNNNNNN, YYYY,MM,DD ARE RETURNED AS
! AS THE CALENDAR DATE. JD=NNNNNNNN IS THE JULIAN DATE
! FROM AN EPOCK IN THE VERY DISTANT PAST. SEE CACM
! 1968 11(10):657, LETTER TO THE EDITOR BY FLIEGEL AND
! VAN FLANDERN.
! EXAMPLE CALL CDATE(2440588,YYYY,MM,DD) RETURNS 1970 1 1 .
! implicit none
INTEGER JD,YYYY,MM,DD,L,N
L=JD+68569
N=4*L/146097
L=L-(146097*N + 3)/4
YYYY=4000*(L+1)/1461001
L=L-1461*YYYY/4+31
MM=80*L/2447
DD=L-2447*MM/80
L=MM/11
MM=MM + 2 - 12*L
YYYY=100*(N-49) + YYYY + L
RETURN
END SUBROUTINE CDATE
SUBROUTINE DAYSUB(JD,YYYY,MM,DD,WD,DDD)
!========GIVEN JD, A JULIAN DAY # (SEE ASF JD), THIS ROUTINE
! CALCULATES DD, THE DAY NUMBER OF THE MONTH; MM, THE MONTH
! NUMBER; YYYY THE YEAR; WD THE WEEKDAY NUMBER, AND DDD
! THE DAY NUMBER OF THE YEAR.
! ARITHMETIC STATEMENT FUNCTIONS 'IZLR' AND 'IDAY' ARE TAKEN
! FROM REMARK ON ALGORITHM 398, BY J. DOUGLAS ROBERTSON,
! CACM 15(10):918.
! ! EXAMPLE: CALL DAYSUB(2440588,YYYY,MM,DD,WD,DDD) YIELDS 1970 1 1 4 1.
! implicit none
INTEGER JD,YYYY,MM,DD,WD,DDD
integer iday,izlr
! !------IZLR(YYYY,MM,DD) GIVES THE WEEKDAY NUMBER 0=SUNDAY, 1=MONDAY,
! ... 6=SATURDAY. EXAMPLE: IZLR(1970,1,1)=4=THURSDAY
! IZLR(YYYY,MM,DD)=MOD((13*(MM+10-(MM+10)/13*12)-1)/5+DD+77 &
+5*(YYYY+(MM-14)/12-(YYYY+(MM-14)/12)/100*100)/4 &
+ (YYYY+(MM-14)/12)/400-(YYYY+(MM-14)/12)/100*2,7)
! !------IDAY IS A COMPANION TO CALEND; GIVEN A CALENDAR DATE, YYYY, MM,
! DD, IDAY IS RETURNED AS THE DAY OF THE YEAR.
! EXAMPLE: IDAY(1984,4,22)=113
! IDAY(YYYY,MM,DD)=3055*(MM+2)/100-(MM+10)/13*2-91 &
+(1-(MOD(YYYY,4)+3)/4+(MOD(YYYY,100)+99)/100 &
-(MOD(YYYY,400)+399)/400)*(MM+10)/13+DD
! CALL CDATE(JD,YYYY,MM,DD)
WD=IZLR(YYYY,MM,DD)
DDD=IDAY(YYYY,MM,DD)
RETURN
END SUBROUTINE DAYSUB
FUNCTION JD(YYYY,MM,DD)
implicit none
integer jd
INTEGER YYYY,MM,DD
! DATE ROUTINE JD(YYYY,MM,DD) CONVERTS CALENDER DATE TO
! JULIAN DATE. SEE CACM 1968 11(10):657, LETTER TO THE
! EDITOR BY HENRY F. FLIEGEL AND THOMAS C. VAN FLANDERN.
! EXAMPLE JD(1970,1,1)=2440588
JD=DD-32075+1461*(YYYY+4800+(MM-14)/12)/4 &
+367*(MM-2-((MM-14)/12)*12)/12-3* &
((YYYY+4900+(MM-14)/12)/100)/4
RETURN
END FUNCTION JD
FUNCTION NDAYS(MM1,DD1,YYYY1, MM2,DD2,YYYY2)
implicit none
integer ndays
INTEGER YYYY1,MM1,DD1,YYYY2,MM2,DD2
!==============NDAYS IS RETURNED AS THE NUMBER OF DAYS BETWEEN TWO
! DATES; THAT IS MM1/DD1/YYYY1 MINUS MM2/DD2/YYYY2,
! WHERE DATEI AND DATEJ HAVE ELEMENTS MM, DD, YYYY.
!-------NDAYS WILL BE POSITIVE IFF DATE1 IS MORE RECENT THAN DATE2.
NDAYS=JD(YYYY1,MM1,DD1)-JD(YYYY2,MM2,DD2)
RETURN
END FUNCTION NDAYS
end module datesub
----- o< ---------------------------------------------------


Click here to read the complete article
Re: xkcd: Y2K and 2038

<jtc9f3FaesdU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3173&group=comp.lang.fortran#3173

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!aioe.org!news.mb-net.net!open-news-network.org!news.mind.de!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: klaus.w.wacker@t-online.de (Klaus Wacker)
Newsgroups: comp.lang.fortran
Subject: Re: xkcd: Y2K and 2038
Date: 13 Nov 2022 13:23:49 GMT
Organization: IEFBR14
Lines: 12
Message-ID: <jtc9f3FaesdU1@mid.individual.net>
References: <tkmbc4$uc0u$1@dont-email.me> <jtc77hF9gfvU2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 1SzbIrYMkKfvBP3ghGEYWwUiwOQZ5Iqykevx2ZIIQTAXfYH+mJ
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:yG2GfG1QCCn/PwB7PPU0QhBE8xw=
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-52-generic (x86_64))
 by: Klaus Wacker - Sun, 13 Nov 2022 13:23 UTC

In comp.lang.fortran Klaus Wacker <klaus.w.wacker@t-online.de> wrote:
>
> My contribution to the 2038 problem:
>

[program text deleted]

Of course you are welcome to add languages.

--
Klaus Wacker klaus.w.wacker@t-online.de
51°29'7"N 7°25'7"E

Re: xkcd: Y2K and 2038

<tkrao1$1ghql$1@redfloyd.dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3177&group=comp.lang.fortran#3177

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!redfloyd.dont-email.me!.POSTED!not-for-mail
From: no.spam.here@its.invalid (red floyd)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: Re: xkcd: Y2K and 2038
Date: Sun, 13 Nov 2022 09:49:54 -0800
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <tkrao1$1ghql$1@redfloyd.dont-email.me>
References: <tkmbc4$uc0u$1@dont-email.me>
<tknieo$36gkg$2@newsreader4.netcologne.de> <tknjnl$k9o$1@gioia.aioe.org>
<87mt8vlila.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 13 Nov 2022 17:49:53 -0000 (UTC)
Injection-Info: redfloyd.dont-email.me; posting-host="3831fb2036a3df10e3ba600ff648b6fd";
logging-data="1591125"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Kdb5fJq+QU3REignn0p9LiQKI7LMzUgw="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.4.2
Cancel-Lock: sha1:8BipDUp2kAIJwQCrqwUqObHnWnk=
In-Reply-To: <87mt8vlila.fsf@nosuchdomain.example.com>
Content-Language: en-US
 by: red floyd - Sun, 13 Nov 2022 17:49 UTC

On 11/12/2022 6:00 PM, Keith Thompson wrote:
> On the other hand, a lot of such
> systems probably don't care what time it is.

Why am I thinking of Chicago now?

Re: xkcd: Y2K and 2038

<tkt0kg$1nldh$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3192&group=comp.lang.fortran#3192

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: Re: xkcd: Y2K and 2038
Date: Mon, 14 Nov 2022 10:09:35 +0100
Organization: A noiseless patient Spider
Lines: 80
Message-ID: <tkt0kg$1nldh$1@dont-email.me>
References: <tkmbc4$uc0u$1@dont-email.me>
<tknieo$36gkg$2@newsreader4.netcologne.de> <tknjnl$k9o$1@gioia.aioe.org>
<87mt8vlila.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 14 Nov 2022 09:09:36 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="8cf3dad3d17addf139cb048320096eae";
logging-data="1824177"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ttlKmPDo2p4xUfFN3CwRCeIDy6wzhF9w="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Cancel-Lock: sha1:jyZCOAdJ2YViPR6rHC+RrrcM2CY=
Content-Language: en-GB
In-Reply-To: <87mt8vlila.fsf@nosuchdomain.example.com>
 by: David Brown - Mon, 14 Nov 2022 09:09 UTC

On 13/11/2022 03:00, Keith Thompson wrote:
> Lynn McGuire <lynnmcguire5@gmail.com> writes:
>
>> On 11/12/2022 1:36 AM, Thomas Koenig wrote:
>>> Lynn McGuire <lynnmcguire5@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.
>>
>> Most software is still 32 bit. Having the operating system as 64 bit
>> 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.
>
> 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.

For the solid majority of programs that use Unix epoch times, unsigned
would be fine. There can't be many programs that need dates before 1970
but are happy to think the world started in late 1901 - Unix epoch times
are almost always considered as time after 01.01.1970. However, as long
as there are /some/ programs that need negative epoch times, you can't
break that functionality.

>
> There are still 32-bit systems and environments. On my 64-bit Ubuntu
> system I can compile with `gcc -m32` and get 32-bit pointers and time_t.
>

I think I heard that the next Ubuntu would not have 32-bit libraries in
its normal repositories any more. That won't stop them being available
for those that need them. (I think I only need 32-bit libraries on
Linux in connection with Wine and 32-bit Windows programs.)

More modern Linux (since kernel 5.6, according to Wikipedia) systems
have 64-bit time_t even on 32-bit builds.

> But since C and C++ require support for 64-bit integers anyway, it
> should be practical to require 64-bit time_t even on 32-bit systems.

Yes.

> (Not sure about Fortran.)

(That's better than me - I haven't a clue about Fortran!)

>
> 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.
>

Pretty much any non-trivial embedded system will care a bit about time,
but usually only relative time - blink every second, send a message
every hour, or whatever. These might have a 32-bit second counter, but
are more likely to have millisecond counters or higher resolution. And
they generally take overflow into account by simply subtracting start
times and current times (generally assuming two's complement wrapping
overflow...). Millisecond 32-bit counters overflow after 49 days, so it
is something you think about more than 69 year overflows.

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.

Bigger embedded systems are more likely to be updatable - though that
does not mean they /will/ be updated. Manufacturers might provide
updates for a few years or while the product is still being made and
sold, but after that they may not bother.

There will be some systems that are a problem - but I do not expect it
to be a widespread issue.

Re: xkcd: Y2K and 2038

<tkt0t0$13ho$2@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3193&group=comp.lang.fortran#3193

  copy link   Newsgroups: comp.lang.fortran comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++
Subject: Re: xkcd: Y2K and 2038
Date: Mon, 14 Nov 2022 09:14:08 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <tkt0t0$13ho$2@news.xmission.com>
References: <tkmbc4$uc0u$1@dont-email.me> <tknjnl$k9o$1@gioia.aioe.org> <87mt8vlila.fsf@nosuchdomain.example.com> <tkrao1$1ghql$1@redfloyd.dont-email.me>
Injection-Date: Mon, 14 Nov 2022 09:14:08 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="36408"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Mon, 14 Nov 2022 09:14 UTC

In article <tkrao1$1ghql$1@redfloyd.dont-email.me>,
red floyd <no.spam.here@its.invalid> wrote:
>On 11/12/2022 6:00 PM, Keith Thompson wrote:
>> On the other hand, a lot of such
>> systems probably don't care what time it is.
>
>Why am I thinking of Chicago now?
>

03:35, 03;34, whatever...

--
The randomly chosen signature file that would have appeared here is more than 4
lines long. As such, it violates one or more Usenet RFCs. In order to remain
in compliance with said RFCs, the actual sig can be found at the following URL:
http://user.xmission.com/~gazelle/Sigs/Voltaire

Re: xkcd: Y2K and 2038

<2945e197-a0f0-4fbd-a9fa-5b95059e8b97n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3194&group=comp.lang.fortran#3194

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a0c:c785:0:b0:4bb:63be:9994 with SMTP id k5-20020a0cc785000000b004bb63be9994mr11489829qvj.111.1668419690038;
Mon, 14 Nov 2022 01:54:50 -0800 (PST)
X-Received: by 2002:a05:620a:1341:b0:6fa:1da0:2e7b with SMTP id
c1-20020a05620a134100b006fa1da02e7bmr10400116qkl.162.1668419689894; Mon, 14
Nov 2022 01:54:49 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Mon, 14 Nov 2022 01:54:49 -0800 (PST)
In-Reply-To: <tkt0kg$1nldh$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:9925:c0b:14d8:ee8d;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:9925:c0b:14d8:ee8d
References: <tkmbc4$uc0u$1@dont-email.me> <tknieo$36gkg$2@newsreader4.netcologne.de>
<tknjnl$k9o$1@gioia.aioe.org> <87mt8vlila.fsf@nosuchdomain.example.com> <tkt0kg$1nldh$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2945e197-a0f0-4fbd-a9fa-5b95059e8b97n@googlegroups.com>
Subject: Re: xkcd: Y2K and 2038
From: gah4@u.washington.edu (gah4)
Injection-Date: Mon, 14 Nov 2022 09:54:50 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2001
 by: gah4 - Mon, 14 Nov 2022 09:54 UTC

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.

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor