comp.lang.ada
 help / color / mirror / Atom feed
From: dmitry@elros.cbb-automation.de (Dmitry A. Kazakov)
Subject: Re: FILETIME <-> Ada.Real_Time.Time conversions
Date: Mon, 24 Dec 2001 18:02:07 GMT
Date: 2001-12-24T18:02:07+00:00	[thread overview]
Message-ID: <3c276abd.785210@news.cis.dfn.de> (raw)
In-Reply-To: 2hJU7.19199$Ah.629569@rwcrnsc52

On Fri, 21 Dec 2001 16:18:06 GMT, "Steve Doiel"
<nospam_steved94@attbi.com> wrote:

>> >You can determine the Real_Time.Time value for your epoch using
>> >Ada.Calendar.Time_Of.  I'll call this real_time_epoch.
>>
>> How do I convert Ada.Calendar.Time to Ada.Real_Time.Time?
>
>In LRM D.8.18 (Ada.Real_Time) the definition of the type Time refers to 9.6
>(Ada.Calendar).
>
>I'm not sure whether this means that values of the two Time values
>correlate, but the first time I read the clause I thought it did.  I know
>you cannot directly convert from one to the other, but you may be able to
>use Unchecked_Conversion.

Wow! It really works at least with GNAT. What a wonderful idea. Many
thanks!

The last problem is that Ada.Calendar.Time is a political time, so I
must somehow get rid of time zone.

>Perhaps a language lawyer could provide a better answer here?

Actually the issue belongs rather to the Annex E than to D, but I
found no word there.

Regards,
Dmitry Kazakov



  reply	other threads:[~2001-12-24 18:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-18 12:53 FILETIME <-> Ada.Real_Time.Time conversions Dmitry A. Kazakov
2001-12-19  9:02 ` Alfred Hilscher
2001-12-19 13:37   ` Dmitry A. Kazakov
2001-12-19 15:06     ` Steve Doiel
2001-12-20 11:27       ` M. A. Alves
2001-12-20 15:10       ` Dmitry A. Kazakov
2001-12-21  3:13         ` Steve Doiel
2001-12-21 10:26           ` Dmitry A. Kazakov
2001-12-21 16:18             ` Steve Doiel
2001-12-24 18:02               ` Dmitry A. Kazakov [this message]
2001-12-21  6:17         ` tmoran
2001-12-21  8:51           ` Dmitry A. Kazakov
2001-12-21 18:17             ` tmoran
2001-12-24 15:59               ` Dmitry A. Kazakov
2001-12-24 18:21                 ` tmoran
2001-12-25 15:53                   ` Dmitry A. Kazakov
replies disabled

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