comp.lang.ada
 help / color / mirror / Atom feed
From: caip.rutgers.edu!halasz
Subject: Re: Software Engineering News Brief
Date: 1996/11/07
Date: 1996-11-07T00:00:00+00:00	[thread overview]
Message-ID: <55t8ri$8g9@caip.rutgers.edu> (raw)
In-Reply-To: 55rmsc$2ee$1@shade.twinsun.com


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




  parent reply	other threads:[~1996-11-07  0:00 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-01  0:00 Software Engineering News Brief Software Engineering News
1996-11-01  0:00 ` Adam Beneschan
1996-11-05  0:00 ` David Bradley
1996-11-05  0:00   ` Larry Kilgallen
1996-11-05  0:00     ` Steve Jones - JON
1996-11-06  0:00   ` Ed Falis
1996-11-06  0:00 ` John Cosby
     [not found] ` <55rmsc$2ee$1@shade.twinsun.com>
1996-11-07  0:00   ` caip.rutgers.edu!halasz [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-11-05  0:00 tmoran
1996-11-05  0:00 ` Robert Dewar
1996-11-07  0:00   ` Stefan.Landherr
1996-11-11  0:00     ` Robert Dewar
1996-11-05  0:00 ` jimgregg
1996-11-06  0:00 ` Tom Reid
1996-11-07  0:00   ` Robert Dewar
1996-11-07  0:00   ` Norman H. Cohen
1996-11-08  0:00   ` Robert I. Eachus
1996-11-09  0:00     ` Paul Eggert
1996-11-11  0:00       ` Norman H. Cohen
1996-11-16  0:00       ` Robert Dewar
1996-11-17  0:00         ` Fergus Henderson
1996-11-17  0:00           ` Robert Dewar
1996-11-17  0:00             ` Larry J. Elmore
1996-11-17  0:00               ` Robert Dewar
1996-11-18  0:00                 ` Keith Thompson
1996-11-18  0:00               ` Larry Kilgallen
1996-11-18  0:00                 ` Robert Rodgers
1996-11-18  0:00               ` Norman H. Cohen
1996-11-19  0:00                 ` Frank Manning
1996-11-18  0:00             ` Mark A Biggar
1996-11-18  0:00             ` Dave Sparks
1996-11-24  0:00             ` Paul Eggert
1996-11-24  0:00               ` Robert Dewar
1996-11-25  0:00                 ` Paul Eggert
1996-11-18  0:00         ` Matt Kennel
1996-11-19  0:00           ` Martin Tom Brown
1996-11-19  0:00           ` Keith Thompson
1996-11-21  0:00   ` Robert I. Eachus
1996-11-07  0:00 tmoran
1996-11-07  0:00 ` Robert Dewar
     [not found] <55t882$9m@news2.delphi.com>
1996-11-07  0:00 ` Robert Dewar
1996-11-09  0:00 tmoran
1996-11-09  0:00 ` Robert Dewar
1996-11-12  0:00 Marin David Condic, 561.796.8997, M/S 731-93
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox