public class DateUtil
extends java.lang.Object
构造器和说明 |
---|
DateUtil() |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
formatRfc822Date(java.util.Date date)
Formats Date to GMT string.
|
static java.util.Date |
parseRfc822Date(java.lang.String dateString)
Parses a GMT-format string.
|
public static java.lang.String formatRfc822Date(java.util.Date date)
date
- public static java.util.Date parseRfc822Date(java.lang.String dateString) throws java.text.ParseException
dateString
- java.text.ParseException