How to program in UTC (time/calenar)

From: Reinert Korsnes ([email protected])

What is the "natural" way to make an Ada program
treat time/calendar data in UTC ?

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

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


Share |