Or maybe you did know?
Anyway,
I was playing around with some IMAP stuff today, and I noticed (on accident) that the timestamp you can pass to the date function can also be an RFC 822 formatted date:
time();
// returns
// 1054871914
date('r', time());
// returns
// Fri, 6 Jun 2003 05:58:34 +0200
$mydate = date('r', time());
date('l, f jS', $mydate);
// returns
// Thursday, January 1st
If this is useful or not... that's another question you have to answer for yourself.
I am using PHP 4.3.1 on Gentoo Linux by the way.