Re: strptime dilemma with Python 2.5

2010-05-30 Thread pythonista
You know why it looks like it has seconds and not microseconds? Because it does, and I'm on something. Thank you > > The date string looks like it has hours, minutes and seconds, not hours, > minutes and microseconds. -- http://mail.python.org/mailman/listinfo/python-list

Re: strptime dilemma with Python 2.5

2010-05-30 Thread MRAB
pythonista wrote: Hello, I have a date string looking like the following: "Sun May 30 07:25:17 2010" With Python 2.6, the %f is supported (it parses the microseconds), so that this statement works: dt = datetime.strptime(s, "%a %b %d %H:%M:%f %Y") However, with Python 2.5, (which is supp