Author dellair.jie
Recipients dellair.jie
Date 2014-01-07.14:45:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389105913.13.0.195664624668.issue20163@psf.upfronthosting.co.za>
In-reply-to
Content
Hello,

We are using Python 3.3.2 for HPUX11.31.

The following error happens only on HPUX, works on SunOS, RHEL, AIX.

python
Python 3.3.2 (default, Dec  9 2013, 14:04:25) [C] on hp-ux11
Type "help", "copyright", "credits" or "license" for more information.
>>> from datetime import datetime
>>> datetime.strptime ("10-Dec-13.20:07:49", "%d-%b-%y.%H:%M:%S")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/python/lib/python3.3/_strptime.py", line 500, in _strptime_datetime
    tt, fraction = _strptime(data_string, format)
  File "/python/lib/python3.3/_strptime.py", line 337, in _strptime
    (data_string, format))
ValueError: time data '10-Dec-13.20:07:49' does not match format '%d-%b-%y.%H:%M:%S'

It looks like a bug. Could you please shed some lights?

Thanks in advance,

Br,
Li
History
Date User Action Args
2014-01-07 14:45:13dellair.jiesetrecipients: + dellair.jie
2014-01-07 14:45:13dellair.jiesetmessageid: <1389105913.13.0.195664624668.issue20163@psf.upfronthosting.co.za>
2014-01-07 14:45:13dellair.jielinkissue20163 messages
2014-01-07 14:45:12dellair.jiecreate