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-7-bit X-Google-Thread: 103376,bba7760fccef922d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-03 06:42:46 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!nreader1.kpnqwest.net.POSTED!not-for-mail Message-ID: <3B41CC36.F7784960@cfmu.eurocontrol.int> From: Ian Wild Organization: Eurocontrol X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.0.30 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cache-Post-Path: ecw.eurocontrol.be!unknown@193.221.189.77 X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Date: Tue, 03 Jul 2001 13:42:38 GMT NNTP-Posting-Host: 193.221.170.178 X-Complaints-To: abuse@Belgium.EU.net X-Trace: nreader1.kpnqwest.net 994167758 193.221.170.178 (Tue, 03 Jul 2001 15:42:38 MET DST) NNTP-Posting-Date: Tue, 03 Jul 2001 15:42:38 MET DST Xref: archiver1.google.com comp.lang.ada:9371 Date: 2001-07-03T13:42:38+00:00 List-Id: Charles Darcy wrote: > > 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. Daylight savings time? Odd thing is, it seems to be using US rules, and you're posting from .au, so I'd've expected the anomalies to happen in the opposite order.