Message9604

Author Arfrever
Recipients Arfrever
Date 2015-03-10.12:10:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425989442.59.0.470878747233.issue2285@psf.upfronthosting.co.za>
In-reply-to
Content
$ LC_ALL="pl_PL.UTF-8" python2.7 -c "import time; print(time.strptime('Thu, 01-Jan-1970', '%a, %d-%b-%Y'))"
time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=-1)
$ LC_ALL="en_US.UTF-8" jython2.7 -c "import time; print(time.strptime('Thu, 01-Jan-1970', '%a, %d-%b-%Y'))"
time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=-1)
$ LC_ALL="pl_PL.UTF-8" jython2.7 -c "import time; print(time.strptime('Thu, 01-Jan-1970', '%a, %d-%b-%Y'))"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/share/jython-2.7/Lib/_strptime.py", line 467, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/share/jython-2.7/Lib/_strptime.py", line 324, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data u'Thu, 01-Jan-1970' does not match format u'%a, %d-%b-%Y'
$
History
Date User Action Args
2015-03-10 12:10:42Arfreversetrecipients: + Arfrever
2015-03-10 12:10:42Arfreversetmessageid: <1425989442.59.0.470878747233.issue2285@psf.upfronthosting.co.za>
2015-03-10 12:10:42Arfreverlinkissue2285 messages
2015-03-10 12:10:42Arfrevercreate