comp.lang.ada
 help / color / mirror / Atom feed
From: "Karel Thönissen" <thoenissen@hello.nl>
Subject: Re: Ada.Calendar."+" gives peculiar result (Gnat 3.13)
Date: Tue, 03 Jul 2001 15:49:41 +0200
Date: 2001-07-03T15:49:41+02:00	[thread overview]
Message-ID: <3B41CD75.8873A3B6@hello.nl> (raw)
In-Reply-To: 3B428DB5.89E1D528@mullum.com.au

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



  parent reply	other threads:[~2001-07-03 13:49 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 [this message]
2001-07-04  4:00   ` Charles Darcy
replies disabled

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