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.2 required=5.0 tests=BAYES_00,FROM_WORDY, 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: "Ken Garlington" Subject: Re: C date package Date: 2000/05/10 Message-ID: #1/1 X-Deja-AN: 621411042 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-Priority: 3 X-Mimeole: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Complaints-To: abuse@flash.net X-Trace: news.flash.net 957930610 216.215.69.190 (Tue, 09 May 2000 22:50:10 CDT) Organization: FlashNet Communications, http://www.flash.net X-MSMail-Priority: Normal NNTP-Posting-Date: Tue, 09 May 2000 22:50:10 CDT Newsgroups: comp.lang.ada Date: 2000-05-10T00:00:00+00:00 List-Id: 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 and then I noticed the comments in GNAT.Calendar.Time_IO: > It follows the GNU Date > specification. Here are the recognized directives : > -- Date fields: > -- > -- %a locale's abbreviated weekday name (Sun..Sat) > -- %A locale's full weekday name, > variable length > -- (Sunday..Saturday) > -- %U week number of year with Sunday as first > day of week > -- (00..53) > -- %w day of week (0..6) with 0 corresponding to > Sunday > -- %W week number of 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?