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-7-bit X-Google-Thread: 103376,a1ce307c10055549 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-16 10:41:24 PST Message-ID: <3DFE1D97.6020109@cogeco.ca> From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: calenday (was Re: IBM Acquires Rational Ada References: <3DF1615C.7AAAC86E@adaworks.com> <8db3d6c8.0212091445.12594821@posting.google.com> <3DF628C4.7090607@cogeco.ca> <3DF6653D.3030603@cogeco.ca> <8db3d6c8.0212101850.51506572@posting.google.com> <3DF8D33F.9020205@cogeco.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 16 Dec 2002 13:38:15 -0500 NNTP-Posting-Host: 198.96.47.195 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1040063896 198.96.47.195 (Mon, 16 Dec 2002 13:38:16 EST) NNTP-Posting-Date: Mon, 16 Dec 2002 13:38:16 EST Organization: Bell Sympatico Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Xref: archiver1.google.com comp.lang.ada:31902 Date: 2002-12-16T13:38:15-05:00 List-Id: Peter Hermann wrote: > Warren W. Gay VE3WWG wrote: > >>But I still believe that there is hope that this may change >>over time. I think that the Ada standards need to move beyond >>the focus of the embedded market to the business and general >>purpose use to improve its acceptability. Give us a _PROPER_ >>Ada.Calendar package for a start! (can't determine the day of >>the week for example) > > http://www.csv.ica.uni-stuttgart.de/homes/ph/adapilotresources/basic_tools/calenday.ads > > which is ready to be built into ada.calendar of gnat for Ada2005. > Of course only after finding a common consensus about the most > useful spec. :-) > I am ready to accept suggestions. I would suggest one more small point WRT to: type day_name_type is (mon,tue,wed,thu,fri,sat,sun); Add a representation clause to guarantee that the values start with sun => 0, mon => 1 etc. For some code, it is much easier to work with the day of the week in the form of a number. -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg