|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.utils.DateUtils
public final class DateUtils
DateUtils - Provides some date-related utility constants/methods
| Method Summary | |
|---|---|
static java.util.Date |
getDateRFC822(java.lang.String string)
Gets the corresponding instance of Date from specified RFC822 date string |
static java.lang.String |
toStringRFC822(java.util.Date d)
Gets the corresponding RFC822 date string from specified instance of Date |
static java.lang.String |
toStringRFC822(java.util.Date d,
java.util.TimeZone tz)
Gets the corresponding RFC822 date string from specified instance of Date |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.Date getDateRFC822(java.lang.String string)
Date from specified RFC822 date string
string - The RFC822 date string
Date
java.lang.IllegalArgumentException - If specified string cannot be parsed to datepublic static java.lang.String toStringRFC822(java.util.Date d)
Date
d - The instance of Date to convert
public static java.lang.String toStringRFC822(java.util.Date d,
java.util.TimeZone tz)
Date
d - The instance of Date to converttz - The time zone
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||