comp.lang.ada
 help / color / mirror / Atom feed
* Newbie Q: How to program in UTC (time/calendar) ?
@ 2009-03-24  8:51 reinkor
  2009-03-24  9:18 ` Dmitry A. Kazakov
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: reinkor @ 2009-03-24  8:51 UTC (permalink / raw)


What is the "natural"/best way to make an Ada program
treat time/calendar data in UTC ?  The quetion is about
treating old measurements/data tagged with UTC time.

I use

  Offset : Constant Time_Offset := UTC_Time_Offset;

and include "Time_Zone=>Offset" in calendar routines
(for example in the functions Time_Of, Split, Value
within  the packages Ada.Calendar.Formatting and
Ada.Calendar.Time_Zones).

I find this a but "artificial". How should one do it?

reinert



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2009-04-04  2:22 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-24  8:51 Newbie Q: How to program in UTC (time/calendar) ? reinkor
2009-03-24  9:18 ` Dmitry A. Kazakov
2009-03-24 10:07 ` Martin
2009-03-24 10:55   ` reinkor
2009-03-24 12:49     ` Martin
2009-03-24 18:53       ` Dirk Heinrichs
2009-03-24 23:59         ` Martin
2009-03-25 10:21           ` reinkor
2009-03-25 15:28             ` tmoran
2009-03-25 21:55               ` sjw
2009-03-26  1:38                 ` tmoran
2009-03-26 20:58                   ` sjw
2009-03-27 12:52                     ` reinkor
2009-03-27 16:58                       ` Jeffrey R. Carter
2009-03-30 11:27                         ` reinkor
2009-03-30 16:47                           ` Jeffrey R. Carter
2009-03-30 12:37                         ` reinkor
2009-03-30 13:45                           ` John B. Matthews
2009-03-30 16:52                           ` Jeffrey R. Carter
2009-03-30 19:34                             ` reinkor
2009-03-30 19:44                             ` reinkor
2009-04-04  2:22                     ` Brian Gaffney
2009-03-24 11:29 ` Jacob Sparre Andersen

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