comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Advice on Calendar.Time
Date: Wed, 30 Nov 2005 18:24:59 -0600
Date: 2005-11-30T18:24:59-06:00	[thread overview]
Message-ID: <pqidnQQ4E7F73BPenZ2dnUVZ_s6dnZ2d@megapath.net> (raw)
In-Reply-To: 1131565063.972303.313350@g44g2000cwa.googlegroups.com

<brian.b.mcguinness@lmco.com> wrote in message
news:1131565063.972303.313350@g44g2000cwa.googlegroups.com...
> So one approach would be to use Ada.Calendar.Time_Zones as Martin
> suggested, e.g. get
> the time of day from Clock, using Split to divide it into year, month,
> day, and second, then get the time offset (in minutes) from
> UTC_Time_Offset, and convert to GMT accordingly.  But the question
> remains of how to deal with leap seconds.  (And why does
> UTC_Time_Offset return a value in minutes rather than seconds, which
> would make it more compatible with Split?)

Because it's a separate strongly typed parameter to Split. You're supposed
to directly Split the time value into the parts, not try to adjust them
later. Nor are you supposed to add or subtract this value from a Time
object. (There were some members of the ARG who were very opposed to any
such semantics.)

                         Randy.






      parent reply	other threads:[~2005-12-01  0:24 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
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 [this message]
replies disabled

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