get the min date from a list

Marko Rauhamaa marko at pacujo.net
Thu Aug 14 13:19:50 EDT 2014


luofeiyu <elearn2014 at gmail.com>:

>         y=time.strptime(time_part,"%a, %d %b %Y %H:%M:%S")

As I said, whether that works depends on your locale -- according to the
reference documentation.

In practice, I couldn't get that to fail in my tests. I would be on my
guard, though. That might mean I couldn't use strptime to convert the
dates.


Marko



More information about the Python-list mailing list