[issue6165] strftime incorrectly processes DST flag when passed time touples
R. David Murray rdmur...@bitdance.com added the comment: Closing because of lack of response. -- nosy: +r.david.murray status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6165] strftime incorrectly processes DST flag when passed time touples
Terry J. Reedy tjre...@udel.edu added the comment: It is not clear to me what you think is a bug. Please give actual output, what you expect (in full), and reference to doc. I cannot test in 3.1 as that format is no longer legal. -- components: +Library (Lib) -Extension Modules nosy: +tjreedy status: open - pending versions: +Python 2.7 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6165] strftime incorrectly processes DST flag when passed time touples
New submission from Jonathan jonathan.cervi...@gmail.com: import time time.strftime(%FT%T%z) '2009-06-01T18:35:42+0100' # Expect to see +0100 time.strftime(%FT%T%z,time.localtime()) '2009-06-01T18:35:42+' time.strftime(%FT%T%Z,time.localtime()) '2009-06-01T18:35:42BST' made_up_time = list(time.localtime()) made_up_time [2009, 6, 1, 18, 35, 48, 0, 152, 1] made_up_time[1] = 2 made_up_time=tuple(made_up_time) time.strftime(%FT%T%z,made_up_time) '2009-02-01T18:35:48+' # Expect to see GMT or UTC, whatever strftime wants to call it. time.strftime(%FT%T%Z,made_up_time) '2009-02-01T18:35:48BST' -- components: Extension Modules messages: 88659 nosy: jonathan.cervidae severity: normal status: open title: strftime incorrectly processes DST flag when passed time touples type: behavior versions: Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6165] strftime incorrectly processes DST flag when passed time touples
Jonathan jonathan.cervi...@gmail.com added the comment: Actually, I didn't change the DST flag in the second test, the second commented bug is invalid, only the first one is correct. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6165] strftime incorrectly processes DST flag when passed time touples
Jonathan jonathan.cervi...@gmail.com added the comment: kludged_zone = (+ if time.altzone 0 else '-') + time.strftime(%H%M,time.gmtime(abs(time.altzone))) time_zone_format_string = time_zone_format.replace(%z, kludged_zone) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com