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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,aa60d56d22a287d1 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!c9g2000yqm.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: Newbie Q: How to program in UTC (time/calendar) ? Date: Thu, 26 Mar 2009 13:58:56 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 82.20.239.213 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1238101137 2900 127.0.0.1 (26 Mar 2009 20:58:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 26 Mar 2009 20:58:57 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c9g2000yqm.googlegroups.com; posting-host=82.20.239.213; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:4349 Date: 2009-03-26T13:58:56-07:00 List-Id: On Mar 26, 1:38=A0am, tmo...@acm.org wrote: > >I know this is what Windows[1] does, but it isn't what a Real OS (tm) > >would do > > =A0 What do you mean by "this"? If you mean that a "Real OS (tm)" can tel= l > where the computer it's running on is located, or what the politicians > have decided about Daylight Savings time, without being told, that's quit= e > magical. > =A0 You still haven't said how today's clock time relates to your process= ing > of time-stamped historical data. What I mean is that one should keep the internal clock set to UTC (I'm not being picky about leap seconds here, if the OP needs to be that will perhaps be more complicated) and change the time zone setting to correspond to the time zone in which one finds oneself. The last time I ran Windows outside a virtual environment it would change the system (bios) clock on DST change. I don't know what it does if you change the TZ. TZ/DST info updates (caused by political changes) appear magically through the ether from one's OS vendor.