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 just sets this option > to False. > The idea of adding an optional argument to time.strftime() was discussed on python-dev, but did not get much traction there: """ I wish we didn't have to do that -- isn't it easy enough for the app to do the 2d -> 4d conversion itself before calling the library function? The only exception would be when parsing a string -- but strptime can tell whether a 2d or 4d year is requested by the format code (%y or %Y). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1777412> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com