Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96491

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <random832@fastmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:: [': 0.03; 'cc:addr:python-list': 0.09; 'implies': 0.09; 'received:internal': 0.09; 'sfxlen:2': 0.10; 'python.': 0.11; '"by': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'peters': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'wrote:': 0.16; 'subject:] ': 0.19; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'algorithm': 0.20; 'occurs': 0.22; 'sep': 0.22; 'subject:skip:i 10': 0.22; 'cc:no real name:2**0': 0.22; 'sat,': 0.23; 'tim': 0.24; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'skip:" 20': 0.26; 'function': 0.28; 'code': 0.30; 'probably': 0.31; 'included': 0.32; 'class': 0.33; 'utility': 0.33; 'could': 0.35; 'but': 0.36; 'too': 0.36; 'skip:i 20': 0.36; 'there': 0.36; 'subject:" ': 0.36; 'subject:?': 0.36; 'received:10': 0.37; 'being': 0.37; '12,': 0.37; 'received:66': 0.38; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'from:no real name:2**0': 0.60; 'header:Message-Id:1': 0.61; 'subject:there': 0.66; 'subject:any': 0.84; 'lot,': 0.95; 'subject:Are': 0.95
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=7N7lbcCqzVDDM1cpuvbfyRh+ndc=; b=4KewdD Ii9t4zxp4MoFRkElALF+4+iqBj7RFZMVqJEUlRoMmWHIJXRCOi/p4maJwc7wpobY RP8tspu+MIN2o8y8Ww7JMMsyyg6TmmB2H/58ukRkoFTxTrCSy6rz40YZwESvosp1 3zqrfhW2KTa4LseKk4wfro1pQ5wZgY/1kd9R8=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=7N7lbcCqzVDDM1c puvbfyRh+ndc=; b=htTQED/+J7DJ6Wga1LaJ1pfG6UK9b5P3fLX8SQzPTQIFjzp zt6Zs8Xlr6dLYcTsnnmvS6glbipO/MH7PIDlFOoLtnQtjna+WboOOA4PHlnRfYaq Stv4O1URgwu8YjaqJ2EAlaPUvjVyDL6hKAbnkAPjVtNe5NacfoGtg+N3HI5s=
X-Sasl-Enc +6kMNNSo+KioJ7J1DBOwUKkcOBw1IkFN10CGgGRXYqa2 1442112849
From random832@fastmail.com
To "datetime-sig" <datetime-sig@python.org>
Cc python-list@python.org
MIME-Version 1.0
Content-Transfer-Encoding 7bit
Content-Type text/plain
X-Mailer MessagingEngine.com Webmail Interface - ajax-c76b43ce
In-Reply-To <CAExdVN=_wDWrjJPyau4fmP28NQ=vNfSgQH8DuveHRJ2T2m5ZqA@mail.gmail.com>
References <m2h9mzqyy7.fsf@fastmail.com> <CAExdVNm0rrxhbSONfQdor7e=9t+6Tg3hh6eFq-h0NnfdpteVYg@mail.gmail.com> <1442085362.324875.381920729.5E7A6DCE@webmail.messagingengine.com> <CAExdVNnUwRKN2q=trpnD9=mxnXvuosWKO+s5=PCfjAO45-Yugw@mail.gmail.com> <CAP7h-xYFAggqbJBNCZbYFwUqCPzW7-4Rc0x_SzgAumpFYAr6oA@mail.gmail.com> <CAExdVNmfTsqunRR_b-Q1YqWrTjsV1L5ppAoAnL7SUwgR2PFU0A@mail.gmail.com> <CAP7h-xbqq2Eu+vVO2g4WmbRJ=gmL1r9D2sWhKe=qQ8Ev-n415w@mail.gmail.com> <CAP7+vJ+1Vg21qOWAD+9R2REDnWiW4o6nj=Rh8fx3x3cAZipcdw@mail.gmail.com> <CAP7h-xbA6ZagKj+rQ_cCc8d0oK1F329AAhSjY240iiDyB4756A@mail.gmail.com> <CAExdVNnw6zfJQ_wFOurjj6kcLcbr9RgXA7kvyNPmgraMcHU4vQ@mail.gmail.com> <CAP7h-xYp=MsOcvFXNCHNkXDDGH=jcAwYSSw1WWchy5bwZKjwLA@mail.gmail.com> <CAExdVN=_wDWrjJPyau4fmP28NQ=vNfSgQH8DuveHRJ2T2m5ZqA@mail.gmail.com>
Subject Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?
Date Sat, 12 Sep 2015 22:54:09 -0400
X-Mailman-Approved-At Sun, 13 Sep 2015 12:41:50 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.471.1442140911.8327.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1442140911 news.xs4all.nl 23781 [2001:888:2000:d::a6]:55496
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:96491

Show key headers only | View raw



On Sat, Sep 12, 2015, at 22:25, Tim Peters wrote:
> That helps a lot, but "industrial-strength" implies "by algorithm".
> There are far too many zones to deal with by crafting a hand-written
> class for each.

It occurs to me that though it's written in C, the zdump utility
included in the tz code is implementation-agnostic w.r.t. what algorithm
is used by the localtime function being tested. It's algorithm could
probably be adapted to python.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo? random832@fastmail.com - 2015-09-12 22:54 -0400

csiph-web