[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: OpenLDAP: contextCSN check across mirrors
rahul.manchanda@bt.com wrote:
> [..]
> 2010-05-06 15:15:51,573 - ldapSynchCheck.py - DEBUG - contextCSN =
> *20100506141549.755004Z*#000000#003#000000 <*here it goes different*>
>
> *Traceback (most recent call last): *
> [..]
> datetime.datetime.fromtimestamp(time.mktime(time.strptime(gentime,"%Y%m%d%H%M%S")))
> *
>
> * File "/software/python/lib/python2.6/_strptime.py", line 454, in
> _strptime_time *
>
> * return _strptime(data_string, format)[0] *
>
> * File "/software/python/lib/python2.6/_strptime.py", line 328, in
> _strptime *
>
> * data_string[found.end():]) *
>
> *ValueError: unconverted data remains: .044268 *
I think is rather a question about whether Python's standard lib function
time.strptime() can parse the input data with the format specifier "%Y%m%d%H%M%".
So I'd recommend to extract the input data in variable gendata and ask with
such a test case in news:comp.lang.python
Ciao, Michael.
--
Michael Ströder
E-Mail: michael@stroeder.com
http://www.stroeder.com