[Tutor] Re: How to compare to time strings?
Prahlad Vaidyanathan
slime@vsnl.net
Mon, 21 Jan 2002 06:11:18 GMT
Hi,
On Sat, 19 Jan 2002 A spewed into the ether:
> Hello,
> I have two time strings like
> Mon, 31 Dec 2001 15
> and
> Sat, 19 Jan 2002 21
>
> How can I compare them and find out that
> Mon, 31 Dec 2001 15
> is before
> Sat, 19 Jan 2002 21
> ?
>
> I can not use
> strptime function , to convert it first,because I use windows and
> there is not that function.
> Thanks for help
> Ladislav
You could use rfc822.parsedate(). Even if it doesn't work exactly the
way you want it to, it should provide a decent starting point.
pv.
--
Prahlad Vaidyanathan <slime@vsnl.net>
Thank goodness modern convenience is a thing of the remote future.
-- Pogo, by Walt Kelly