comp.lang.ada
 help / color / mirror / Atom feed
From: "Norman H. Cohen" <ncohen@watson.ibm.com>
Subject: Re: Software Engineering News Brief
Date: 1996/11/11
Date: 1996-11-11T00:00:00+00:00	[thread overview]
Message-ID: <32877082.1A29@watson.ibm.com> (raw)
In-Reply-To: 563tle$cu7$1@shade.twinsun.com


Paul Eggert wrote (about the range of years 1901 to 2099):

> Actually, many kinds of applications require support for dates outside
> that range; it was shortsighted of the Ada standard-writers to prohibit
> implementations from having better standard date support than that.

But if some implementations have better "standard date support" than
others, it's no longer "standard", is it?  

The predefined Calendar package has a type for representing times and
dates in the range 1901 to 2099, but an implementation can provide a
nonstandard package that supports a different range, as long as the
implementation ALSO provides the standard package.  Similarly, a
programmer can easily write hiw own package supporting a different
range.

The intended use of the package Calendar, reflected in its design, is
the manipulation of dates and times during and near to the execution of
the program, most obviously to query the current time or to establish
the time at which some action should be performed.  (Ada programs that
use package Calendar construct dates prior to the advent of Ada are
quite rare.  The example of such a program on page 88 of Ada as a Second
Language is intended to be facetious, as is made clear by the text
introducing it.)  The predefined package Calendar was not designed for
calendrical calculations such as determining the day of the week on
which November 11 occurred in the year 1376, and does not provide
facilities that would be particularly helpful in making such
calculations.  If you were writing an application that required such
calculations, you would probably write your own, quite different,
package.

-- 
Norman H. Cohen
mailto:ncohen@watson.ibm.com
http://www.research.ibm.com/people/n/ncohen




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

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-05  0:00 Software Engineering News Brief 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   ` Norman H. Cohen
1996-11-07  0:00   ` Robert Dewar
1996-11-08  0:00   ` Robert I. Eachus
1996-11-09  0:00     ` Paul Eggert
1996-11-11  0:00       ` Norman H. Cohen [this message]
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
  -- strict thread matches above, loose matches on Subject: below --
1996-11-12  0:00 Marin David Condic, 561.796.8997, M/S 731-93
1996-11-09  0:00 tmoran
1996-11-09  0:00 ` Robert Dewar
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-01  0:00 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
replies disabled

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