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!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!209.244.4.230!newsfeed1.dallas1.level3.net!news.level3.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Advice on Calendar.Time Date: 8 Nov 2005 11:09:52 -0600 Organization: LJK Software Message-ID: References: <1131465873.702910.143400@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1131469756 30401 192.135.80.34 (8 Nov 2005 17:09:16 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Tue, 8 Nov 2005 17:09:16 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:6291 Date: 2005-11-08T11:09:52-06:00 List-Id: 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.