[Python-checkins] python/nondist/sandbox/datetime datetime.py, 1.159, 1.160
![](https://secure.gravatar.com/avatar/b929d7a47a24393ffa010de48f10e27a.jpg?s=120&d=mm&r=g)
Update of /cvsroot/python/python/nondist/sandbox/datetime In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20910 Modified Files: datetime.py Log Message: Change date.strftime() to be aligned with Modules/datetimemodule.c in regards to having values in its time tuple for strftime() that meet the bounds checks. Index: datetime.py =================================================================== RCS file: /cvsroot/python/python/nondist/sandbox/datetime/datetime.py,v retrieving revision 1.159 retrieving revision 1.160 diff -C2 -d -r1.159 -r1.160 *** datetime.py 7 Feb 2003 21:40:34 -0000 1.159 --- datetime.py 4 Mar 2004 05:27:13 -0000 1.160 *************** *** 1238,1244 **** # The year must be >= 1900 else Python's strftime implementation # can raise a bogus exception. ! timetuple = (1900, 0, 0, self.__hour, self.__minute, self.__second, ! 0, 0, -1) return _wrap_strftime(self, fmt, timetuple) --- 1238,1244 ---- # The year must be >= 1900 else Python's strftime implementation # can raise a bogus exception. ! timetuple = (1900, 1, 1, self.__hour, self.__minute, self.__second, ! 0, 1, -1) return _wrap_strftime(self, fmt, timetuple)
participants (1)
-
bcannon@users.sourceforge.net