From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2b151131f90050ab X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-29 21:41:37 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Al Christians Newsgroups: comp.lang.ada Subject: Re: Ada, calendar, and daylight savings Date: Mon, 29 Oct 2001 21:41:57 -0800 Organization: Public Property Software Message-ID: <3BDE3DA5.88C5D1A8@easystreet.com> X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 References: <3BDCEEFF.10409@acm.org> <9rjq8j$at5$1@nh.pace.co.uk> <3BDD94E6.2030804@acm.org> <9rl2s2$u9eai$1@ID-25716.news.dfncis.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:15392 Date: 2001-10-29T21:41:57-08:00 List-Id: Nick Roberts wrote: > > My suggestion is as follows: > > package Ada.Calendar.Worldwide is > > type Zoned_Time is private; > -- This type includes the offset from UTC with the actual time. > > type Time_Zone_Offset is delta 30*60.0 range -12*60*60.0 .. +12*60*60.0; > -- An offset from UTC, in seconds, as half-hour intervals from -12 to > -- +12 hours. Localtime = TimeUTC + offset. > IIRC, and if this is one thing that they haven't changed since I was a kid, there are some places that have more than 12 hours difference from UTC. That's local standard time. Maybe more if you allow that daylight or double daylight time might apply in such places. Al