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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,6b85fea93f20b683 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-28 05:53:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.net.uni-c.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Timetype Date: Fri, 28 Jun 2002 14:53:46 +0200 Organization: Centre for Chaos and Turbulence Studies, Niels Bohr Institute Message-ID: <3D1C5C5A.16D72861@nbi.dk> References: <7CKS8.3774$t4.9720@nntpserver.swip.net> NNTP-Posting-Host: alf.nbi.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.net.uni-c.dk 1025268827 17182 130.225.212.55 (28 Jun 2002 12:53:47 GMT) X-Complaints-To: usenet@news.net.uni-c.dk NNTP-Posting-Date: Fri, 28 Jun 2002 12:53:47 +0000 (UTC) X-Mailer: Mozilla 4.78 [en] (X11; U; OSF1 V4.0 alpha) X-Accept-Language: fo,da,no,sv,is,de,fr,en Xref: archiver1.google.com comp.lang.ada:26767 Date: 2002-06-28T14:53:46+02:00 List-Id: Bj�rn Lundin wrote: > subtype Year_Number is Integer range 1901 .. 2099; > > Does it mean that i can write an application dealing with historical dates > using the time_type? You should not (as others already have written) expect to be able to use the type Ada.Calendar.Time for dates outside the range 1901 to 2099. > It seems to me that a date like 05-Jun-1712 would cause > constraint_error. Yes, but nothing prevents you from implementing your own date or time type, which extends this range. There are actually already at least one such package, which I found through "comp.lang.ada". Using a calendar extending sufficiently far back in time, you will also have to be careful about switches in the calendar systems which are different in different locations/countries. Jacob -- "ikke engang statens embedsm�nd form�r at s�tte sig tilstr�kkeligt ind i, om de ting de st�tter udvikling af, rent faktisk er udviklet og patenterede f�r!" -- Erik Lange