comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Dowie <martin.dowie@btopenworld.com>
Subject: Re: Advice on Calendar.Time
Date: Tue, 8 Nov 2005 19:29:29 +0000 (UTC)
Date: 2005-11-08T19:29:29+00:00	[thread overview]
Message-ID: <dkquap$7e8$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com> (raw)
In-Reply-To: <1131475104.101511.297410@g49g2000cwa.googlegroups.com>

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




  reply	other threads:[~2005-11-08 19:29 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
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 [this message]
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