Issue1559

classification
Title: time.strptime broken for day of week for Sunday
Type: behaviour Severity: normal
Components: Library Versions: 2.5.1
Milestone:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: seansummers, zyasoft
Priority: Keywords:

Created on 2010-02-20.14:47:46 by seansummers, last changed 2010-02-22.22:56:18 by zyasoft.

Messages
msg5543 (view) Author: Sean Summers (seansummers) Date: 2010-02-20.14:47:45
python and jython don't agree on tm_wday for 12/28/2008.

Can't upload a file, so here's the code:
python -c 'import time; print time.strptime("12/28/08", "%m/%d/%y")'
(2008, 12, 28, 0, 0, 0, 6, 363, -1)
jython -c 'import time; print time.strptime("12/28/08", "%m/%d/%y")'
(2008, 12, 28, 0, 0, 0, -1, 363, -1)
msg5545 (view) Author: Jim Baker (zyasoft) Date: 2010-02-22.22:23:03
The day of week returned by time.strptime should return 6, instead of -1, for Sunday dates
msg5546 (view) Author: Jim Baker (zyasoft) Date: 2010-02-22.22:55:53
Fixed by r6981
History
Date User Action Args
2010-02-22 22:56:18zyasoftsetstatus: open -> closed
resolution: accepted
2010-02-22 22:55:53zyasoftsetmessages: + msg5546
2010-02-22 22:23:04zyasoftsetnosy: + zyasoft
messages: + msg5545
title: time.strptime broken for 12/28/2008 -> time.strptime broken for day of week for Sunday
2010-02-20 14:47:46seansummerscreate