Path: csiph.com!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone01.am1.xlned.com!bcyclone01.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.03; 'operator': 0.03; 'api.': 0.04; 'think,': 0.05; '(so': 0.07; 'conversions': 0.07; 'cc:addr:python-list': 0.09; 'creighton': 0.09; 'dst,': 0.09; 'happen.': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'sane': 0.09; 'span': 0.09; 'tickets.': 0.09; 'wrong,': 0.09; 'python': 0.10; 'packages.': 0.15; 'alexander': 0.16; 'already,': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'cc:name:laura creighton': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'peters': 0.16; 'railroad': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'relatives': 0.16; 'scrape': 0.16; 'uses,': 0.16; 'utc': 0.16; 'utc.': 0.16; 'app': 0.16; 'laura': 0.18; '(in': 0.18; 'subject:] ': 0.19; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**2': 0.20; 'issue.': 0.20; 'saying': 0.22; 'clock': 0.22; 'sep': 0.22; 'subject:skip:i 10': 0.22; 'cc:no real name:2**0': 0.22; 'thus': 0.24; 'tim': 0.24; 'written': 0.24; 'sort': 0.25; 'correct': 0.28; 'this.': 0.28; 'fine': 0.28; '-0500,': 0.29; 'comparison': 0.29; 'pep': 0.29; 'received:se': 0.29; 'convert': 0.29; 'themselves': 0.29; 'getting': 0.33; 'case,': 0.34; 'schedule': 0.34; 'add': 0.34; 'gives': 0.35; 'skip:> 10': 0.35; 'asking': 0.35; 'problem.': 0.35; 'but': 0.36; 'basic': 0.36; 'heard': 0.36; 'subject:" ': 0.36; 'subject:?': 0.36; 'expect': 0.37; 'thought': 0.37; 'charset :us-ascii': 0.37; 'means': 0.39; 'why': 0.39; 'does': 0.39; 'subject:-': 0.39; 'some': 0.40; 'him': 0.60; 'your': 0.60; 'avoid': 0.61; 'header:Message-Id:1': 0.61; 'telling': 0.61; 'back': 0.62; 'here.': 0.62; 'skip:n 10': 0.62; 'distance': 0.63; 'different': 0.63; 'here:': 0.63; 'times': 0.63; 'brain': 0.66; 'past.': 0.66; 'subject:there': 0.66; '495': 0.84; '>if': 0.84; '>of': 0.84; 'header:In-reply-to:1': 0.84; 'subject:any': 0.84; 'via,': 0.84; 'dozen': 0.91; 'time)': 0.91; 'subject:Are': 0.95; 'hand,': 0.97 To: Tim Peters cc: Laura Creighton , Python-List , datetime-sig , lac@openend.se From: Laura Creighton Subject: Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo? In-reply-to: References: <1442085362.324875.381920729.5E7A6DCE@webmail.messagingengine.com> <201509131224.t8DCOXHO004891@fido.openend.se> <201509131600.t8DG07e0025688@fido.openend.se> <201509131940.t8DJe36w015280@! fido.openend.se> Comments: In-reply-to Tim Peters message dated "Sun, 13 Sep 2015 15:13:53 -0500." MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28025.1442176289.1@fido> Date: Sun, 13 Sep 2015 22:31:29 +0200 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Sun, 13 Sep 2015 22:31:31 +0200 (CEST) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 42 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442176304 news.xs4all.nl 23772 [2001:888:2000:d::a6]:47955 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 7155 X-Received-Body-CRC: 562641544 Xref: csiph.com comp.lang.python:96526 In a message of Sun, 13 Sep 2015 15:13:53 -0500, Tim Peters writes: >[Laura] >> Via Rail will give you a schedule when you book your tickets. But I >> am wrong, it gives it to you in local time, which you can scrape or >> even use the via rail api. So it is the person getting off in >> Creighton who wants to tell his relatives back in Halifax what >> time he is arriving (in their time) (so they can call him and >> avoid the hellish hotel surtax on long distance calls) who will >> have the problem. > >Whatever time zone the traveler's railroad schedule uses, so long as >it sticks to just one This is what does not happen. Which is why I have written a python app to perform conversions for my parents, in the past. >But there's nothing new here: datetime has been around for a dozen >years already, and nobody is proposing to add any new basic >functionality to tzinfos. PEP 495 is only about adding a flag to >allow correct conversion of ambiguous local times (typically at the >end of DST, when the local clock repeats a span of times) to UTC. So >if this were a popular use case, I expect we would already have heard >of it. Note that Python zoneinfo wrappings are already available via, >at least, the pytz and dateutil packages. I am a happy user of pytz. On the other hand, I think this means that my brain has gone through some sort of non-reversible transformation which makes me accurate, but not exactly sane on the issue. I think I have misunderstood Alexander Belopolsky as saying that datetime had functionality which I don't think it has. Thus I thought we must be planning to add some functionality here. Sorry about this. However, people do need to be aware, if they are not already, that people with 3 times in 3 different tz will want to sort them. Telling them that they must convert them to UTC before they do so is, in my opinion, a very fine idea. Expecting them to work this out by themselves via a assertion that the comparison operator is not transitive, is, I think, asking a lot of them. Laura