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 X-Google-Thread: 103376,bba7760fccef922d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-03 06:56:37 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!newsfeed.mathworks.com!intgwlon.nntp.telstra.net!nsw.nnrp.telstra.net!not-for-mail Message-ID: <3B4294C1.35144C6D@mullum.com.au> From: Charles Darcy X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3-20mdk i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada.Calendar."+" gives peculiar result (Gnat 3.13) References: <3B428DB5.89E1D528@mullum.com.au> <3B41CD75.8873A3B6@hello.nl> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Wed, 04 Jul 2001 00:00:01 -0400 NNTP-Posting-Host: 203.109.169.35 X-Complaints-To: abuse@telstra.net X-Trace: nsw.nnrp.telstra.net 994168595 203.109.169.35 (Tue, 03 Jul 2001 23:56:35 EST) NNTP-Posting-Date: Tue, 03 Jul 2001 23:56:35 EST Organization: Customer of Telstra Big Pond Direct Xref: archiver1.google.com comp.lang.ada:9372 Date: 2001-07-04T00:00:01-04:00 List-Id: Karel Th�nissen wrote: > > Charles Darcy schreef: > > > > Hello, > > > > I've been using the Ada.Calendar.Time type to represent dates in my > > program, and have struck a problem. > > > > Within a loop, I add (7 * Ada.Calendar.Day_Duration'Last) to an > > Ada.Calendar.Time object, at the end of each iteration. I expected this > > to advance the time by 1 week, and so it does initially. After a number > > of loop iterations, however, the addition seems to advance the time by 1 > > week and 1 hour. > > [code snipped] > > > Any ideas as to what is going on ? In case its relevant, I'm using Gnat > > 3.13p under Linux. > > Daylight-saving / summertime. Of course. Thanks (and sorry for being dense).