On Mon, Apr 09, 2001 at 06:20:47PM +1000, Sonam Chauhan wrote:
> > Otherwise, Python has a rfc822 module :)
> >
> Bingo! It just what I need.
>
> --SNIP--
> parsedate (date)
> Attempts to parse a date according to the rules in RFC 822 . however, some
>mailers don't follow that format as
> specified, so parsedate() tries to guess correctly
> in such cases. date is a string containing an RFC 822 date, such as 'Mon, 20
>Nov 1995 19:12:08 -0500'. If it
> succeeds in parsing the date, parsedate()
> returns a 9-tuple that can be passed directly to time.mktime(); otherwise None
>will be returned. Note that fields
> 6, 7, and 8 of the result tuple are not usable.
> --SNIP--
>
> I've heard good things about Python so I'll give it a try.Is it easy to learn?
Very easy. There are a few good books you can buy, but you may as well
just go to http://www.python.org/doc/ and read the tutorial there. It's
well worth the trouble of learning Python -- it's a very nice language.
-Andrew.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug