org.apache.james.util
Class RFC822DateFormat

java.lang.Object
  |
  +--org.apache.james.util.RFC822DateFormat

public class RFC822DateFormat
extends java.lang.Object

I suppose I could access some of the special messages within Sun's implementation of the JavaMail API, but I've always been told not to do that. This class has one static method that takes a java.util.Date object and returns a nicely formatted String version of this, formatted as per the RFC822 mail date format.

Author:
Serge Knystautas

Constructor Summary
RFC822DateFormat()
           
 
Method Summary
static java.lang.String toString(java.util.Date d)
          SimpleDateFormat will handle most of this for us, but the timezone won't match, so we do that manually
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RFC822DateFormat

public RFC822DateFormat()
Method Detail

toString

public static java.lang.String toString(java.util.Date d)
SimpleDateFormat will handle most of this for us, but the timezone won't match, so we do that manually

Parameters:
d - Date
Returns:
java.lang.String


"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."