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,45c857e19c4ee2df X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-27 06:56:52 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.flash.net!easynews!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!kilgallen From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Ada95 calendar package question Message-ID: References: <9hbb9n$g14$1@fang.dsto.defence.gov.au> <3B395724.6B4B9B67@worldnet.att.net> Organization: LJK Software Date: 27 Jun 2001 09:56:48 -0500 NNTP-Posting-Host: 216.44.122.34 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 993650211 216.44.122.34 (Wed, 27 Jun 2001 13:56:51 GMT) NNTP-Posting-Date: Wed, 27 Jun 2001 13:56:51 GMT Xref: archiver1.google.com comp.lang.ada:9142 Date: 2001-06-27T09:56:48-05:00 List-Id: In article <3B395724.6B4B9B67@worldnet.att.net>, James Rogers writes: > Vladimir Bednikov wrote: >> >> Hi all, >> >> I'm using gnat3.13p on an sgi with gcc2.8.1 and am wondering if there is a >> way of >> getting the day of week and month in text format. I.E. >> Mon, Tue, Wed, Thu, Fri, Sat and Sun for days of the week and >> Jan, Feb, Mar, Apr .... for the month of the year. > > Ada does not provide such conversions as part of the Ada.Calendar > package. Which representation for days of the week and month names > is appropriate in all situations and cultures? Certainly one culture that must be considered is the culture of the operating system on which one is running. Many operating systems have their own standard for how programs should display dates, along with the ability for a user to express personal preferences. If you are running on such an operating system, you should strongly consider using the operating system method, even if it means making a call to non-Ada code.