Thank you all for your insights. <br>mx.DateTime and feedparser seem to be the easiest to work with. <br>Ravi.<br><br><div class="gmail_quote">On Fri, Mar 7, 2008 at 4:36 AM, Kent Johnson &lt;<a href="mailto:kent37@tds.net">kent37@tds.net</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Ravi Kondamuru wrote:<br>
&gt; I looked at datetime, but it seems slightly complex to work with non GMT<br>
&gt; timestamps.<br>
<br>
</div>Mark Pilgrim&#39;s Universal Feed Parser includes a robust date parser that<br>
works with your sample:<br>
In [1]: import feedparser as fp<br>
In [2]: fp._parse_date(&#39;Mon Feb 11 01:34:52 CST 2008&#39;)<br>
Out[2]: (2008, 2, 11, 7, 34, 52, 0, 42, 0)<br>
<br>
<a href="http://www.feedparser.org/" target="_blank">http://www.feedparser.org/</a><br>
<br>
This appears to be an RFC 2822-format date:<br>
<a href="http://www.faqs.org/rfcs/rfc2822.html" target="_blank">http://www.faqs.org/rfcs/rfc2822.html</a><br>
<br>
feedparser uses these functions to parse the date string:<br>
In [4]: import rfc822<br>
In [5]: rfc822.parsedate_tz(&#39;Mon Feb 11 01:34:52 CST 2008&#39;)<br>
Out[5]: (2008, 2, 11, 1, 34, 52, 0, 1, 0, -21600)<br>
In [7]: rfc822.mktime_tz(_5)<br>
Out[7]: 1202715292.0<br>
In [8]: import time<br>
In [9]: time.gmtime(_7)<br>
Out[9]: (2008, 2, 11, 7, 34, 52, 0, 42, 0)<br>
<br>
The rfc822 module is deprecated; the same functions are now found in<br>
email.util.<br>
<font color="#888888"><br>
Kent<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>రవిచంద్ర కొండమూరు<br>(Ravi Kondamuru)