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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cfd23c10fd537a80 X-Google-Attributes: gid103376,public From: Geoff Bull Subject: Re: C date package Date: 2000/05/10 Message-ID: <3918EFDE.68138A2E@research.canon.com.au>#1/1 X-Deja-AN: 621430494 Content-Transfer-Encoding: 7bit References: <39176D85.603D7AEC@research.canon.com.au> <39178DEA.FD2C20FA@research.canon.com.au> <8f92o1$6v$1@nnrp1.deja.com> <3918BB77.693C70D6@research.canon.com.au> <8fahfv$mgt$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@research.canon.com.au X-Trace: cass.research.canon.com.au 957935543 7037 203.12.174.227 (10 May 2000 05:12:23 GMT) Organization: Canon Information Systems Research Australia Mime-Version: 1.0 NNTP-Posting-Date: 10 May 2000 05:12:23 GMT Newsgroups: comp.lang.ada Date: 2000-05-10T05:12:23+00:00 List-Id: Ken Garlington wrote: > > Just out of curiosity, I was going to ask why your week started on Monday: > > > type Day_Name is > > (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, > > Sunday); > > > function Week_In_Year (Date : Ada.Calendar.Time) return > > Week_In_Year_Number; > > -- Returns the week number in the year with Monday as first > > day of week > > which implies that, although it's acceptable in GNU to start counting weeks > on either Sunday or Monday, the first (zero'th) day of the week is always > Sunday? Is this right? ISO8601 defines Monday as the first day of the week when it comes to numbering weeks within years. The first week of the year is the week that contains the first Thursday. ISO8601 also says that Monday is numbered as 1 and Sunday is numbered as 7. Right depends on what "standard" you are applying. Cheers Geoff