[Ironpython-users] IronPython 2.7.0 vs 2.7.5

Djordje Spasic issworld2000 at yahoo.com
Wed Feb 8 05:02:09 EST 2017


Hello,

I am using Rhino 5, and Rhino WIP applications shipped with IronPython 2.7.0 and 2.7.5 version respectively.
I have an issue with time.strptime function.
The following code works perfectly on IronPython 2.7.0:
import timedate = "JAN/30/2017"date_timeStruct = time.strptime(date,"%m/%d/%Y")

Once IronPython 2.7.5 is installed, it fails with this error message on the third line:

Runtime error (ValueErrorException): time data does not match format
data=JAN/30/2017, fmt=%m/%d/%Y, to: M'/'d'/'yyyy


Is there a way of making the time.strptime function work on both 2.7.0 and 2.7.5 versions?

I would appreciate any kind of reply.

Thank you in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20170208/43ba74c7/attachment.html>


More information about the Ironpython-users mailing list