[Datetime-SIG] Making dt parameter of timezone.tzname(dt) optional

Alexander Belopolsky alexander.belopolsky at gmail.com
Wed Sep 9 19:51:24 CEST 2015

On Wed, Sep 9, 2015 at 1:43 PM, Guido van Rossum <guido at python.org> wrote:

> On Wed, Sep 9, 2015 at 10:24 AM, Alexander Belopolsky <
> alexander.belopolsky at gmail.com> wrote:
>> On Wed, Sep 9, 2015 at 12:33 PM, Tim Peters <tim.peters at gmail.com> wrote:
>>> +0.  The base (tzinfo) class requires the datetime argument because,
>>> in general, a zone's name depends on the datetime (like "is it in the
>>> zone's "daylight" time"?).
>> I was thinking of returning the "zoneinfo" name such as America/New_York
>> in this case.  This would end the debate about what is the "proper"
>> timezone name: if you know the date and time - you can get a specific
>> EST/EDT abbreviation.  If not - you'll just get whatever the zoneinfo calls
>> itself.
> But that's not directly related to the proposal, is it? The proposal is to
> treat tz.tzname() the same as tz.tzname(None) -- not to give the former a
> different meaning.
> Right.  That's an independent proposal.  I was mostly responding to Tim's
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150909/da27403d/attachment.html>

More information about the Datetime-SIG mailing list