STINNER Victor victor.stin...@haypocalc.com 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
Alexander Belopolsky belopol...@users.sourceforge.net 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
STINNER Victor victor.stin...@haypocalc.com 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:
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Fri, Jan 7, 2011 at 7:26 PM, STINNER Victor rep...@bugs.python.org wrote:
..
Here is a patch removing the arbitrary datetime.strftime() limit on year: it
adds an
option accept2dyear to time.strftime() and datetime
Alexander Belopolsky belopol...@users.sourceforge.net 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 ^^^
--
___
STINNER Victor victor.stin...@haypocalc.com 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
Alexander Belopolsky belopol...@users.sourceforge.net 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
STINNER Victor victor.stin...@haypocalc.com 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
STINNER Victor victor.stin...@haypocalc.com 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
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
title: Python's strftime dislikes years before 1900 - datetime.strftime
dislikes years before 1900
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1777412
10 matches
Mail list logo