[issue1777412] datetime.strftime dislikes years before 1900

2011-01-08 Thread STINNER Victor
STINNER Victor added the comment: time.asctime(), time.ctime() and time.strftime() are no more not limited for the year field if accept2dyear=0. Except with Visual Studio or on Solaris: the year is limited to the range [1; ]. datetime.strftime() is limited to year >= 1000 (instead of year

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: > r87845+r87846 sets time.strftime() minimum year to 1 instead of 1900. > If Python is compiled with Visual Studio, it sets also the maximum > year to . r87848 removes all limits on the year field; r87850 (Issue #10864) limits year to [1; ] on Solaris

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: r87845+r87846 sets time.strftime() minimum year to 1 instead of 1900. If Python is compiled with Visual Studio, it sets also the maximum year to . -- ___ Python tracker ___

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I like strftime_1_.patch, but it really belongs to #10827. Please leave a note there once you commit and mention the issue in commit log. -- ___ Python tracker _

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: strftime_1_.patch: replace 1900 <= year limit by 1 <= year or 1 <= year <= (if compiled with Visual Studio). With more tests on years. -- Added file: http://bugs.python.org/file20310/strftime_1_.patch _

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: -- --Guido van Rossum (python.org/~guido) """ -- http://mail.python.org/pipermail/python-dev/2011-January/107246.html ^^^ the last lines of msg125738 cut by roundup ^^^ -- ___ Python tracker

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Jan 7, 2011 at 7:26 PM, STINNER Victor wrote: .. > Here is a patch removing the arbitrary datetime.strftime() limit on year: it > adds an > option "accept2dyear" to time.strftime() and datetime just sets this option > to False. > The idea of ad

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch removing the arbitrary datetime.strftime() limit on year: it adds an option "accept2dyear" to time.strftime() and datetime just sets this option to False. -- Added file: http://bugs.python.org/file20309/datetime_strftime_nolimit.diff

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: After r87829 (see issue10827), the insane Y2K behavior of time module functions does not extend beyond year 999. Hopefully in Python 3.3, accept2dyear will be removed completely and datetime.strftime() will be able to support the full intersection of p

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- title: Python's strftime dislikes years before 1900 -> datetime.strftime dislikes years before 1900 ___ Python tracker ___ ___