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,34e6505a3616fb21 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-19 09:26:09 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!hammer.uoregon.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison Sender: usenet@www.newsranger.com References: <3AB2D1EF.B2CA8117@acm.org> <995asr$m34$1@nh.pace.co.uk> Subject: Re: calander package - Proposal for dates Message-ID: Date: Mon, 19 Mar 2001 17:24:04 GMT NNTP-Posting-Host: 127.0.0.1 X-Complaints-To: abuse@newsranger.com X-Trace: www.newsranger.com 985022644 127.0.0.1 (Mon, 19 Mar 2001 12:24:04 EST) NNTP-Posting-Date: Mon, 19 Mar 2001 12:24:04 EST Organization: http://www.newsranger.com Xref: supernews.google.com comp.lang.ada:5854 Date: 2001-03-19T17:24:04+00:00 List-Id: In article <995asr$m34$1@nh.pace.co.uk>, Marin David Condic says... > >Well, the problem is this: If you *don't* want to limit things to some fixed >set of formats, you're only going to invent some programming language for >"rolling your own". Maybe it would be a tad easier than simply using Ada .. >I've coded a bunch of date/time-to-string formatting routines with Ada and >they are generally pretty small. If you were to provide some flavor of That's pretty much my opinon on the subject as well. For the last version of the SETI@Home Service I ended up having to write 2 separate time stamp routines ("DD/MM/YY HH:MM:SS" and "Month Day Year, HH:MM:SS Meridian"). It should be pretty obvious that they coudn't share much code. The last time I wrote one before that, it was in yet another format that included the miliseconds, since that was a real-time system where the MS between two events could be very important. The only time-related thing I'd really like to see some reusable component for would be for finding the day of the week. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com