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, LOTS_OF_MONEY 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-13 11:56:08 PST Path: supernews.google.com!sn-xit-03!supernews.com!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: Tue, 13 Mar 2001 14:50:15 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <98ltmj$90q$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> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 984513043 9242 136.170.200.133 (13 Mar 2001 19:50:43 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 13 Mar 2001 19:50:43 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:5695 Date: 2001-03-13T19:50:43+00:00 List-Id: Near trivial if all you want is MM/DD/YY or something similar. Still, it seems a shame that Ada.Calendar didn't provide one or more functions to return the date/time as a string - just because it is frequently needed and getting it from the language environment would imply a certain amount of consistency. I've built my own to generate the date/time in a whole variety of formats because on any number of occasions you might need it different ways. Maybe I should revisit this code with the goal of consolidating it down to fewer routines with more options? A dozen or so formats suggests an enumeral and the rest would be some flavor of "What character(s) do you like for separators?" and "Did you want the current time or are you going to give me a time of your own?" 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/ "Ted Dennison" wrote in message news:%%tr6.2979$54.3285@www.newsranger.com... > In article <98lis0$56j$1@nh.pace.co.uk>, Marin David Condic says... > Well, with that caveat, I'll mention that the 2.0 release of the SETI@Home > service just happens to have a routine in it that does exactly that (for > date/time-stamping log entries). It'd probably be just as easy for most folks to > write their own, though. >