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


Groups > comp.lang.python > #96449

Re: Are there any "correct" implementations of tzinfo?

From random832@fastmail.us
Subject Re: Are there any "correct" implementations of tzinfo?
Date 2015-09-12 15:18 -0400
References <m2h9mzqyy7.fsf@fastmail.com> <55F47098.80706@oddbird.net>
Newsgroups comp.lang.python
Message-ID <mailman.439.1442085541.8327.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Sep 12, 2015, at 14:36, Carl Meyer wrote:
> Well, the problem is that because datetime doesn't include any way to
> disambiguate ambiguous times, it's not really possible to implement
> complex timezones in a way that is both correct (if your definition of
> correct includes "timezone conversions are lossless") and also matches
> the intended model of datetime.

I'm not even talking about ambiguous times. I'm mostly talking about
unambiguous times on opposite sides of the transition. It's not even
clear to me how the model of datetime envisions _those_ working with
"classic arithmetic".

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


Thread

Re: Are there any "correct" implementations of tzinfo? random832@fastmail.us - 2015-09-12 15:18 -0400

csiph-web