From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f86b3,41eaf27f183b7c40,start X-Google-Attributes: gidf86b3,public X-Google-Thread: 1108a1,37e6dbf5e31f6da0 X-Google-Attributes: gid1108a1,public X-Google-Thread: 10db24,37e6dbf5e31f6da0 X-Google-Attributes: gid10db24,public X-Google-Thread: 103376,37e6dbf5e31f6da0 X-Google-Attributes: gid103376,public X-Google-Thread: ff6c8,37e6dbf5e31f6da0 X-Google-Attributes: gidff6c8,public X-Google-Thread: f43e6,37e6dbf5e31f6da0 X-Google-Attributes: gidf43e6,public From: caip.rutgers.edu!halasz Subject: Re: Software Engineering News Brief Date: 1996/11/07 Message-ID: <55t8ri$8g9@caip.rutgers.edu>#1/1 X-Deja-AN: 195365686 sender: halasz@caip.rutgers.edu references: <55dr50$ch1@ns1.sw-eng.falls-church.va.us> <55rmsc$2ee$1@shade.twinsun.com> organization: . newsgroups: comp.lang.ada,comp.sw.components,comp.object,comp.software-eng,comp.edu,comp.software.year-2000 Date: 1996-11-07T00:00:00+00:00 List-Id: In article <55rmsc$2ee$1@shade.twinsun.com>, eggert@twinsun.com (Paul Eggert) writes > Well, that's true as far as it goes, but it > turns out that several Solaris applications (SCCS and xterm, for example) > _do_ have year-2000 problems because the application developers saw fit > to take the year modulo 100, or subtract 1900 from the year, or some > such nonsense. The latter is not nonsens, for if x < y then x - 1900 < y - 1900 --there is nothing wrong with that. But this printf("%02d", y - 1900); amounts to year modulo 100 (if "y >= 0"), not year less 1900. To wit, by itself subtracting 1900 is no problem, but one who did is eazily led astray into the real trap. Incidentally, the century-turn is not enough grounds for to drop the convenient abbreviation of uzing only the last twain digits of the year-numeral; it is grounds for care. In a system that I workd on, such 2-digit numerals were permitted in data-entry, in text-formd datafiles, but the meaning of it depended on a configuration variable. If this was, o, 1940, 2-digit year-numerals span 1940-2039. That is, if the short numeral is less than the (0-based) remainder of dividing the variable by 100 it stands for the year numberd 2000 (100+variable-remainder) greater, otherwize for the year numberd 1900 (variable-remainder) greater. One can make SCCS work on by either taking the year in the file to be 1900 less than the real number--in this case, 2000 Jan 12 is "100/01/12", or installing sum such scheme as aforesaid in "delta", "get", "prs", ..., maibe make it a new flag in the history-file itself, & if not there it is taken for 1970 (an important year for Unix).