Message198944
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 |
|
Date |
User |
Action |
Args |
2013-10-04 11:52:02 | krzaq | set | recipients:
+ krzaq, filip.zyzniewski |
2013-10-04 11:52:02 | krzaq | set | messageid: <1380887522.54.0.10872055906.issue19162@psf.upfronthosting.co.za> |
2013-10-04 11:52:02 | krzaq | link | issue19162 messages |
2013-10-04 11:52:02 | krzaq | create | |
|