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!news.glorb.com!blackbush.cw.net!cw.net!news.rh-tec.net!news.belwue.de!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: Advice on Calendar.Time Date: Tue, 8 Nov 2005 19:29:29 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1131465873.702910.143400@g43g2000cwa.googlegroups.com> <1131475104.101511.297410@g49g2000cwa.googlegroups.com> NNTP-Posting-Host: host86-131-206-49.range86-131.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com 1131478169 7624 86.131.206.49 (8 Nov 2005 19:29:29 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Tue, 8 Nov 2005 19:29:29 +0000 (UTC) In-Reply-To: <1131475104.101511.297410@g49g2000cwa.googlegroups.com> X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) Xref: g2news1.google.com comp.lang.ada:6297 Date: 2005-11-08T19:29:29+00:00 List-Id: REH wrote: > Wilhelm Spickermann wrote: > >>Larry Kilgallen wrote: >> >> >>>If your operating system is set to make daylight savings time >>>adjustments, you should change that setting. >> >>and additionally check for the handling of leap seconds. If your >>operating system is using "posix"-time, it will _not_ count >>positive leap seconds. There will be a positive leap second at >>the end of this year: >>(http://hpiers.obspm.fr/iers/bul/bulc/bulletinc.dat) >> >>Wilhelm > > > My main problem is we are evaluating several compilers (we are > upgrading, finally, to Ada 95). I am trying to removed any > implemtation-specific things. I was hoping to handle time without > needing to know if such things like posix are used or not, or whether > local time is used. Not sure if it will 'fix' your problem but have you had a look at the extensions to Ada.Calendar in AI-351? There is an implementation at http://www.martin.dowie.btinternet.co.uk/ This can let you get from your timezone to UTC but I think the important thing to realize is that dealing with time turns out to be _very_ OS-dependent - even with a standardized API. :-( Cheers -- Martin