comp.lang.ada
 help / color / mirror / Atom feed
From: Charles Darcy <charlie@mullum.com.au>
Subject: Re: Ada.Calendar."+" gives peculiar result (Gnat 3.13)
Date: Wed, 04 Jul 2001 00:00:01 -0400
Date: 2001-07-04T00:00:01-04:00	[thread overview]
Message-ID: <3B4294C1.35144C6D@mullum.com.au> (raw)
In-Reply-To: 3B41CD75.8873A3B6@hello.nl

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).



      reply	other threads:[~2001-07-04  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-04  3:29 Ada.Calendar."+" gives peculiar result (Gnat 3.13) Charles Darcy
2001-07-03 13:42 ` Ian Wild
2001-07-04  1:16   ` Charles Darcy
2001-07-03 13:49 ` Karel Thönissen
2001-07-04  4:00   ` Charles Darcy [this message]
replies disabled

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