Re: [hatari-devel] Hatari clock question |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Hatari clock question
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Wed, 17 Aug 2022 19:36:20 +0200
- Authentication-results: strato.com; dkim=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1660757780; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=o2wTMnVgJ6KR9YWbDnM3Akqu7dzqLfAoo8LeCQz2d6M=; b=CoUTlKuWYbxkWzF2r2aW8bA2Ass6ZpHmbPFbfUXSVGw4B+Y49IbOJGIxa1RcceFmkk ZVwY70Bp/Gx4TVCG1QSYZyjjMIl7PEusqCFPIVUJTs+yB9qPgrJmvsrU0wg/tY7lJMHe x1fCFK/yZ6fU0EHNUbddkC391vyG7vTF54dvAAYwzld6s43Dd5KE3+gNDwytw6ZPEtaq ubIeCLWVpc9lP6X4jWzyPI04xRz3xAWt5zPRhp3d6KOf5Tjm2s14Ukff191hPLZEGJB/ S1EdfUF5CxfLc1y1arVjoUks1zwUGue86VJ6Qw2zSb8d6HP/i6h+e4WSWkY00r+hSbZD nMgw==
Hi,
> On Mittwoch, 17. August 2022 11:22:16 CEST Eero Tamminen wrote:
> > I was thinking about potential problems in the future, when the date (the
> >
> > > year in particular) value increases.
>
> I think the year value alone is not a problem in forseeable future. TOS/GEMDOS
> year is starting at 1980, with 7 bits for the value, making the maximum year
> 2107. And even if you only have 2 decimal digits stored in a RTC, starting at
> 1968, that will give a maximum of 2067.
>
> The lowest problematic value for me seems to be ~2038, when the time is
> converted to seconds since 1970, and will then overflow a signed 32bit value.
> That is something that an emulator can't do much about. I guess lots of old
> programs will then run into problems.
I agree, but I was referring to programs which fail before 2038. I recently
stumbled upon a Mac application for setting the clock, which did not accept
a year value of more than 2020. If something like that happened with an Atari
program you would not be able to use it with Hatari. At least not without
changing the host system time.
So this is about taking precautions, in case there is such a software for
the Atari.
Best regards
Uwe