How to compare to time strings?

A printers at sendme.cz
Sat Jan 19 16:58:45 EST 2002


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





More information about the Python-list mailing list