Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: get the min date from a list Date: Thu, 14 Aug 2014 20:19:50 +0300 Organization: A noiseless patient Spider Lines: 13 Message-ID: <87r40jaszt.fsf@elektro.pacujo.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="1359"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GYZuuR1RyNgPkhnkkQXMy" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:IkUyhp48lkZjbR1DSnVP2IlxlMA= sha1:0GF6IPyJOE60cLbwWE2EMeD5bac= Xref: csiph.com comp.lang.python:76322 luofeiyu : > 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