➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 belopolsky
收信人 belopolsky, mark.dickinson
日期 2010-06-21.15:35:15
SpamBayes Score 0.00026254644
Marked as misclassified 否
Message-id <1277134517.77.0.579653961485.issue9004@psf.upfronthosting.co.za>
In-reply-to
内容
With timezone.utc available in datetime module, users should be encouraged to use dt.astimezone(timezone.utc).timetuple() instead of dt.utctimetuple().  Note that the later will set tm_isdst to -1.  This observation can be used to argue for either of two ways to resolve this issue:

1. Since utctimetuple() is no longer necessary, and the alternative works correctly, there is no need to fix it.  Just recommend the astimezone use in the docs and explain the subtle difference.

2. Having two ways to do the same thing which have a subtle difference is not a good idea.

I am leaning towards #1, but would like to hear from others.
历史
日期 用户 动作 参数
2010-06-21 15:35:17belopolsky修改recipients: + belopolsky, mark.dickinson
2010-06-21 15:35:17belopolsky修改messageid: <1277134517.77.0.579653961485.issue9004@psf.upfronthosting.co.za>
2010-06-21 15:35:16belopolsky链接issue9004 messages
2010-06-21 15:35:16belopolsky创建