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:39:54 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!newsfeed00.sul.t-online.de!t-online.de!skynet.be!bnewspeer01.bru.ops.eu.uu.net!bnewsifeed01.bru.ops.eu.uu.net!bnewspost00.bru.ops.eu.uu.net!emea.uu.net!news.nl.uu.net!not-for-mail Message-ID: <3B41CD75.8873A3B6@hello.nl> Date: Tue, 03 Jul 2001 15:49:41 +0200 From: Karel =?iso-8859-1?Q?Th=F6nissen?= X-Mailer: Mozilla 4.51 [nl]C-CCK-MCD (Win95; I) X-Accept-Language: nl,de,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> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 1Cust182.tnt37.rtm1.nl.uu.net X-Trace: 994167592 news.nl.uu.net 14120 213.116.168.182 X-Complaints-To: abuse@nl.uu.net Xref: archiver1.google.com comp.lang.ada:9370 Date: 2001-07-03T15:49:41+02:00 List-Id: 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. -- Groeten, Karel Th�nissen Hello Technologies develops high-integrity software for complex systems