"frenc1z 1z" <[email protected]> wrote in message
news:[email protected]...
Hello,
I'm a novice python (python 2.6.1) user with the following problem.
Never though this was going to be so difficult :-).
I would like to compare some dates (date+time really). The dates all have
the following RFC2822 format:
Eg. is d1 < d2?
d1 = "Tue, 13 Jan 2009 03:27:29 -0800"
d2 = "Tue, 13 Jan 2009 02:40:00 -0600"
Check out the email.utils module, specifically the parsedate_tz and
mktime_tz functions.
-Mark
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor