comp.lang.ada
 help / color / mirror / Atom feed
From: Ian Wild <ian@cfmu.eurocontrol.int>
Subject: Re: Ada.Calendar."+" gives peculiar result (Gnat 3.13)
Date: Tue, 03 Jul 2001 13:42:38 GMT
Date: 2001-07-03T13:42:38+00:00	[thread overview]
Message-ID: <3B41CC36.F7784960@cfmu.eurocontrol.int> (raw)
In-Reply-To: 3B428DB5.89E1D528@mullum.com.au

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.



  reply	other threads:[~2001-07-03 13:42 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 [this message]
2001-07-04  1:16   ` Charles Darcy
2001-07-03 13:49 ` Karel Thönissen
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