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,aa60d56d22a287d1 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.szaf.org!news.gnuher.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Dirk Heinrichs Newsgroups: comp.lang.ada Subject: Re: Newbie Q: How to program in UTC (time/calendar) ? Followup-To: comp.lang.ada Date: Tue, 24 Mar 2009 19:53:17 +0100 Organization: Privat Message-ID: References: <89277c47-788d-441c-95b2-f47e1b70a532@j39g2000yqn.googlegroups.com> <572820e4-9243-42aa-b05f-fc4dd8ac4ade@a12g2000yqm.googlegroups.com> NNTP-Posting-Host: achn-4db496bf.pool.einsundeins.de Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: online.de 1237920798 6072 77.180.150.191 (24 Mar 2009 18:53:18 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Tue, 24 Mar 2009 18:53:18 +0000 (UTC) User-Agent: KNode/0.99.01 Xref: g2news1.google.com comp.lang.ada:4261 Date: 2009-03-24T19:53:17+01:00 List-Id: Martin wrote: > These sort of things make sensible time computations hard, e.g. what > does "1:30am" mean if the clocks have gone back an hour for winter at > 2am? Is it the first 1:30am or the second that night? I'd say that depends on the OS you run your program on (and its configuration). On a Linux system with hardware clock configured to run on UTC, this isn't a problem, because the real (local) time is calculated from this and the timezone setting. OTOH, on a Linux system configured to run on local time, it may be as you describe (I never ever did that so I don't know for sure). Bye... Dirk