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-Thread: 103376,cb2591a9113d8ee6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!news.glorb.com!news.banetele.no!news.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Advice on Calendar.Time Date: Sun, 13 Nov 2005 15:15:49 +0100 Organization: Jacob's private Usenet server Message-ID: References: <1131465873.702910.143400@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: 80.241.165.50 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: jacob-sparre.dk 1131891351 1105 80.241.165.50 (13 Nov 2005 14:15:51 GMT) X-Complaints-To: sparre@jacob-sparre.dk NNTP-Posting-Date: Sun, 13 Nov 2005 14:15:51 +0000 (UTC) User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:BusFOBm1f5Dh/XWrPwKB6rHxZVc= Xref: g2news1.google.com comp.lang.ada:6358 Date: 2005-11-13T15:15:49+01:00 List-Id: Keith Thompson wrote: > That might be acceptable for an embedded system. If it's a > user-oriented OS (like, say, Unix or Windows), making the system > clock incorrect by an hour for half of each year would be a very bad > idea. Unix systems (at least those I have used) do actually by default run the system clock on UTC without fiddling around with the hours twice a year. It is only the time shown to the users which is changed (depending on where in the world they claim to be located). > On some systems, time zone information has a default system-wide > value, but can be changed for individual processes. Setting the $TZ > environment variable to "UTC" certainly isn't portable, but it might > be good enough for the OP's purposes. Fixing the Ada.Calendar system so you can request both UTC and "user time" would be the right solution. I hope this is done in Ada2005. Jacob -- �Great minds discuss ideas, Average minds discuss events, Small minds discuss people.�