comp.lang.ada
 help / color / mirror / Atom feed
From: "Ken Garlington" <Ken.Garlington@computer.org>
Subject: Re: C date package
Date: 2000/05/10
Date: 2000-05-10T00:00:00+00:00	[thread overview]
Message-ID: <S%4S4.10390$wb7.881827@news.flash.net> (raw)
In-Reply-To: 8fahfv$mgt$1@nnrp1.deja.com

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?







  parent reply	other threads:[~2000-05-10  0:00 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <l0313030eb53d1408aee7@[144.205.16.58]>
2000-05-09  0:00 ` C date package Geoff Bull
2000-05-09  0:00   ` Geoff Bull
2000-05-09  0:00     ` Robert Dewar
2000-05-10  0:00       ` Geoff Bull
2000-05-10  0:00         ` Robert Dewar
2000-05-10  0:00           ` Geoff Bull
2000-05-10  0:00           ` Ken Garlington [this message]
2000-05-10  0:00             ` Geoff Bull
2000-05-10  0:00           ` Ada Calendar oddity <was Re: C date package> Preben Randhol
2000-05-10  0:00             ` Robert A Duff
2000-05-10  0:00               ` Preben Randhol
2000-05-10  0:00                 ` Charles Hixson
2000-05-11  0:00                   ` Geoff Bull
2000-05-11  0:00                     ` Charles Hixson
2000-05-12  0:00                       ` Geoff Bull
2000-05-17  0:00               ` Robert I. Eachus
2000-05-19  0:00                 ` Geoff Bull
2000-05-19  0:00                   ` Robert I. Eachus
2000-05-21  0:00                     ` Robert Dewar
2000-05-21  0:00                   ` Robert Dewar
     [not found]                     ` <392869F0.D88F056A@acenet.com.au>
2000-05-22  0:00                       ` Tarjei Tj�stheim Jensen
2000-05-27  0:00                         ` Reinert Korsnes
2000-05-27  0:00                           ` Tarjei Tj�stheim Jensen
2000-06-03  0:00                       ` Robert I. Eachus
2000-05-10  0:00             ` Tarjei Tj�stheim Jensen
2000-05-11  0:00               ` Charles Hixson
2000-05-11  0:00                 ` Tarjei Tj�stheim Jensen
2000-05-12  0:00                   ` Charles Hixson
2000-05-12  0:00                     ` Tarjei Tj�stheim Jensen
2000-05-11  0:00               ` Geoff Bull
2000-05-11  0:00                 ` Gautier
2000-05-12  0:00                   ` Geoff Bull
2000-05-12  0:00                     ` Gautier
2000-05-11  0:00                       ` Al Christians
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox