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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6b85fea93f20b683 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-28 16:38:27 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!kibo.news.demon.net!demon!psiuk-p2!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Timetype Date: Fri, 28 Jun 2002 09:47:33 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <7CKS8.3774$t4.9720@nntpserver.swip.net> <3D1BF397.CC974E8E@attbi.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1025272054 19867 136.170.200.133 (28 Jun 2002 13:47:34 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 28 Jun 2002 13:47:34 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:26779 Date: 2002-06-28T13:47:34+00:00 List-Id: An important observation is that the Ada Time was designed for dealing with the most common time computation problems and didn't want to impose unnecessary overhead, confusion & implementation difficulty. For someone who needs to deal with a wider range to cover historical dates, the correct answer is "Devise your own Calendar package that implements the policies you want for years outside the normal range." This sort of thing is also done where you might have special hardware clocks with accuracy issues, etc. (Sometimes you have more than one time source - which one is Ada.Calendar going to use?) It would make sense to model one's home-grown Calendar package on Ada.Calendar to whatever extent is possible. There are always going to be times when you need something substantially different from whatever the language (any language) can provide you. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "Mark Biggar" wrote in message news:3D1BF397.CC974E8E@attbi.com... > > Yes, this range allows using the expression (year mod 4 = 0) to test > test for leap years. BTW taking your example date, which one do you > mean? There is a 11 day difference between 05-jun-1712 in England and > its colonies and that date in most of Europe. England didn't convert > to the Gregorian calendar until 1752, while most of Catholic europe > converted in the 1500's. Russia didn't convert until the 1920's, so > even Ada's year range can cause problems with historical dates. The > standard writers didn't want to deal with the mess that the calendar > is in. >