tomasz.zaleski added the comment: works correctly on python3.3: Python 3.3.2 (default, Oct 4 2013, 12:21:07) [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 Type "help", "copyright", "credits" or "license" for more information. >>> import datetime >>> datetime.datetime.min.strftime('%Y') '0001'
issue on 2.7: Python 2.7.5 (default, Sep 17 2013, 12:11:31) [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 Type "help", "copyright", "credits" or "license" for more information. >>> import datetime >>> datetime.datetime.min.strftime('%Y') Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: year=1 is before 1900; the datetime strftime() methods require year >= 1900 ---------- nosy: +krzaq _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19162> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com