comp.lang.ada
 help / color / mirror / Atom feed
From: Kilgallen@SpamCop.net (Larry Kilgallen)
Subject: Re: Advice on Calendar.Time
Date: 8 Nov 2005 11:09:52 -0600
Date: 2005-11-08T11:09:52-06:00	[thread overview]
Message-ID: <JHWpIvErQcPT@eisner.encompasserve.org> (raw)
In-Reply-To: 1131465873.702910.143400@g43g2000cwa.googlegroups.com

In article <1131465873.702910.143400@g43g2000cwa.googlegroups.com>, "REH" <spamjunk@stny.rr.com> writes:
> Ok, I have another problem:
> 
> We have functions that convert between our mission time and
> Ada.Calendar.Time.  The current implementation depends on the internal
> representation of Time.  This is a pain because it must be rewritten
> everytime we move to a new compile (or even a new version of the same).
>  Is there a way to do this in Standard Ada?  Our mission time is the
> number of seconds since an arbitrarily choosen epoch (1/1/1998) GMT.
> We originally used Time_Of, but had problems because Time_Of was using
> local time and did DST adjustments which were undesirable.

 function Time_Of
     (Year    : Year_Number;
      Month   : Month_Number;
      Day     : Day_Number;
      Seconds : Day_Duration := 0.0)
      return    Time;

I don't see how Time_Of would be "using" some daylight savings time
algorithm unless that is what you fed it.

If your operating system is set to make daylight savings time adjustments,
you should change that setting.



  reply	other threads:[~2005-11-08 17:09 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-08 16:04 Advice on Calendar.Time REH
2005-11-08 17:09 ` Larry Kilgallen [this message]
2005-11-08 17:30   ` REH
2005-11-08 17:59   ` Wilhelm Spickermann
2005-11-08 18:38     ` REH
2005-11-08 19:29       ` Martin Dowie
2005-11-08 20:05         ` REH
2005-11-08 22:00           ` Martin Dowie
2005-11-08 23:02             ` REH
2005-11-08 22:09           ` Wilhelm Spickermann
2005-11-08 22:13             ` REH
2005-11-09  5:23               ` Wilhelm Spickermann
2005-11-09  7:00               ` Martin Dowie
2005-11-09  3:16       ` Jeffrey R. Carter
2005-11-09  1:36   ` Keith Thompson
2005-11-13 14:15     ` Jacob Sparre Andersen
2005-11-13 21:37       ` Keith Thompson
2005-11-09  0:23 ` Stephen Leake
2005-11-09  8:32 ` Dmitry A. Kazakov
2005-11-09 19:37 ` brian.b.mcguinness
2005-11-09 21:45   ` brian.b.mcguinness
2005-12-01  0:24   ` Randy Brukardt
replies disabled

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