[issue16810] inconsistency in weekday

2012-12-29 Thread Glenn Linderman
Changes by Glenn Linderman : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue16810] inconsistency in weekday

2012-12-29 Thread Glenn Linderman
Glenn Linderman added the comment: Thanks for the response, Serhiy. I misreported, but there is still a bug in this area, it seems. Attached is some code. I was printing out (too) many values from datetime to learn how it worked. I got confused on which ones were printed in which order. The

[issue16810] inconsistency in weekday

2012-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't see a difference. $ ./python -c 'import time; print(time.localtime())' time.struct_time(tm_year=2012, tm_mon=12, tm_mday=29, tm_hour=19, tm_min=36, tm_sec=35, tm_wday=5, tm_yday=364, tm_isdst=0) $ ./python -c 'import datetime; print(datetime.date.toda

[issue16810] inconsistency in weekday

2012-12-28 Thread Glenn Linderman
New submission from Glenn Linderman: Docs say: date.timetuple() Return a time.struct_time such as returned by time.localtime(). The hours, minutes and seconds are 0, and the DST flag is -1. d.timetuple() is equivalent to time.struct_time((d.year, d.month, d.day, 0, 0, 0, d.weekday(), yday