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-Thread: 103376,cb2591a9113d8ee6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: "REH" Newsgroups: comp.lang.ada Subject: Re: Advice on Calendar.Time Date: 8 Nov 2005 09:30:01 -0800 Organization: http://groups.google.com Message-ID: <1131471001.674809.285190@z14g2000cwz.googlegroups.com> References: <1131465873.702910.143400@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: 192.91.173.42 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1131471006 17976 127.0.0.1 (8 Nov 2005 17:30:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 8 Nov 2005 17:30:06 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=192.91.173.42; posting-account=lnUIyw0AAACoRB2fMF2SFTIilm8F10q2 Xref: g2news1.google.com comp.lang.ada:6292 Date: 2005-11-08T09:30:01-08:00 List-Id: Larry Kilgallen wrote: > In article <1131465873.702910.143400@g43g2000cwa.googlegroups.com>, "REH" 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. Well, it does. Even the compilers' documentation say it does.