I want to use time module like this.<br><i>mydate = time.strptime('17 Jul 2006 07:23:09 GMT', '%d %b %Y %H:%M:%S %Z')</i><br>But, I have some problem when I run it with PyLucene. <br><br>Is there someone know about this problem?
<br><br>------------------------------------------------------------<br>(1:351:148)$ python<br>Python 2.4.4c0 (#2, Jul 30 2006, 15:43:58) <br>[GCC 4.1.2 20060715 (prerelease) (Debian 4.1.1-9)] on linux2<br>Type "help", "copyright", "credits" or "license" for more information.
<br>>>> import PyLucene<br>WARNING: Error loading security provider gnu.javax.crypto.jce.GnuCrypto: java.lang.ClassNotFoundException: gnu.javax.crypto.jce.GnuCrypto not found in [file:./, core:/]<br>WARNING: Error loading security provider 
gnu.javax.crypto.jce.GnuSasl: java.lang.ClassNotFoundException: gnu.javax.crypto.jce.GnuSasl not found in [file:./, core:/]<br>WARNING: Error loading security provider gnu.javax.net.ssl.provider.Jessie: java.lang.ClassNotFoundException
: gnu.javax.net.ssl.provider.Jessie not found in [file:./, core:/]<br>WARNING: Error loading security provider gnu.javax.security.auth.callback.GnuCallbacks: java.lang.ClassNotFoundException: gnu.javax.security.auth.callback.GnuCallbacks
 not found in [file:./, core:/]<br>>>> import time<br>>>> mydate = time.strptime('17 Jul 2006 07:23:09 GMT', '%d %b %Y %H:%M:%S %Z')<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in ?
<br>  File "/usr/lib/python2.4/_strptime.py", line 293, in strptime<br>    raise ValueError("time data did not match format:  data=%s  fmt=%s" %<br>ValueError: time data did not match format:  data=17 Jul 2006 07:23:09 GMT  fmt=%d %b %Y %H:%M:%S %Z
<br>>>> <br><br>----------------------------------------------<br><br>This works fine.<br>------------------------------<br>Type "help", "copyright", "credits" or "license" for more information.
<br>>>> import time<br>>>> time.strptime('17 Jul 2006 07:23:09 GMT', '%d %b %Y %H:%M:%S %Z')<br>(2006, 7, 17, 7, 23, 9, 0, 198, 0)<br>>>> <br>---------------------------------<br><br>