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,LOTS_OF_MONEY 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-17 13:43:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!server3.netnews.ja.net!south.jnrs.ja.net!server2.netnews.ja.net!pegasus.csx.cam.ac.uk!solway.cl.cam.ac.uk!sjm217 From: news01+Steven.Murdoch@cl.cam.ac.uk (Steven Murdoch) Newsgroups: comp.lang.ada Subject: Re: calenday (was Re: IBM Acquires Rational Ada Date: 17 Dec 2002 21:43:29 GMT Organization: University of Cambridge, England Sender: sjm217@solway.cl.cam.ac.uk (Steven Murdoch) Message-ID: References: <9DKL9.380955$P31.141586@rwcrnsc53> NNTP-Posting-Host: solway.cl.cam.ac.uk X-Newsreader: xrn 9.02 Xref: archiver1.google.com comp.lang.ada:31993 Date: 2002-12-17T21:43:29+00:00 List-Id: In article <9DKL9.380955$P31.141586@rwcrnsc53>, tmoran@acm.org writes: > "And on the seventh day He rested" suggests Sunday should be last and >Monday first. OTOH, both moon and sun are mere astronomical objects, >whereas Thor was a god, so clearly Thursday should be first. ;) ISO 8601 defines the first day of the week to be Monday, and this practice is also quite widespread (it is the convention in the UK and much of Europe) Also ISO 8601 defines Monday to be day 1 and Sunday to be day 7 so I would suggest forcing the representation to be 1..7, if this is not what the languge defaults to. This also makes many of the date processing functions slightly easier to understand. See: http://www.cl.cam.ac.uk/~mgk25/iso-time.html for more information. Steven Murdoch.