New submission from Alexander Belopolsky <belopol...@users.sourceforge.net>:

I find the following quite misleading:

>>> from datetime import datetime
>>> import time
>>> time.strftime('%c %z %Z', datetime.utcnow().utctimetuple())
'Wed Jun 16 03:26:26 2010 -0500 EST'

As far as I can tell, the only other function that uses the tm_isdst flag is 
time.mktime, but it expect a timetuple containing local time, not UTC time.

----------
assignee: belopolsky
components: Extension Modules
messages: 107906
nosy: belopolsky, mark.dickinson
priority: normal
severity: normal
stage: unit test needed
status: open
title: datetime.utctimetuple() should not set tm_isdst flag to 0
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9004>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to