Unconverted data remains

Nikhil Verma varma.nikhil22 at gmail.com
Thu Nov 8 09:04:56 CET 2012


Hi

My Problem


I have a list :-
 L = ['Sunday November 11  2012 9:00pm ', 'Thursday November 15  2012
7:00pm ',\
                 'Friday November 16  2012 7:00pm ', 'Monday November 19
 2012 7:30pm ', \
                 'Friday November 23  2012 7:30pm ', 'Sunday November 25
 2012 8:00pm ',\
                 'Monday November 262012 7:00pm ', 'Thursday November 29
 2012 6:30pm ',\
                 'Saturday December 1  20125:30pm ', 'Thursday December 6
 2012 9:00pm ',\
                 'Sunday December 9  2012 7:00pm ', 'Friday November 9
 2012 6:00pm ', \
                 'Friday November 9  2012 7:00pm ', 'Friday November 9
 2012 7:00pm ']


final_event_time = [datetime.strptime(iterable, '%A %B %d %Y %I:%M%p') for
iterable in L]

and having this error Unconverted data remains . I am trying to convert all
these in datetime object.

-- 
Regards
Nikhil Verma
+91-958-273-3156
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20121108/4cbf89d0/attachment.html>


More information about the Python-list mailing list