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,6ea0a5c35bbeef5e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-14 07:02:08 PST Path: supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!freenix!isdnet!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: calander package Date: Wed, 14 Mar 2001 09:47:33 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <98o0b0$3c8$1@nh.pace.co.uk> References: <98jo6d$vu4$1@slb3.atl.mindspring.net> <98lis0$56j$1@nh.pace.co.uk> <%%tr6.2979$54.3285@www.newsranger.com> <98ltmj$90q$1@nh.pace.co.uk> <3AAED192.1479@li.net> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 984581280 3464 136.170.200.133 (14 Mar 2001 14:48:00 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 14 Mar 2001 14:48:00 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: supernews.google.com comp.lang.ada:5718 Date: 2001-03-14T14:48:00+00:00 List-Id: This might be a viable idea for a "semi-standard" add-on package to Ada. However, one gripe: I think that the package ought to support Microseconds since there are often times where this level of resolution is possible & desirable. On systems where you don't have it, it just rounds up to whatever resolution you do have. On that argument, one might even go so far as to ask for representation of Nanoseconds, given that a 32 bit word could hold the Nanoseconds in a Second. Except for specialized things, you're not likely to get a clock resolution much better than that any time soon - otherwise I'd ask for Attoseconds or something equally ridiculous! :-) So perhaps a version of the package should be created that replaces Milliseconds with Micro or Nanoseconds? (You definitely don't want to have micro-within-milli. I've seen that done and it gets really confusing!) MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Vincent Marciante" wrote in message news:3AAED192.1479@li.net... > The original Booch.Calendar_Utilities could be considered. > > http://www.adapower.com/original_booch/ > > Its spec follows. > > type Time is > record > The_Year : Year; > The_Month : Month; > The_Day : Day; > The_Hour : Hour; > The_Minute : Minute; > The_Second : Second; > The_Millisecond : Millisecond; > end record;