com.ptteng.mall.order.util.apacheCommonUtil.httpclient.util.DateUtilpublic class DateParser extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
PATTERN_ASCTIME
已过时。
Date format pattern used to parse HTTP date headers in ANSI C
asctime() format. |
static String |
PATTERN_RFC1036
已过时。
Date format pattern used to parse HTTP date headers in RFC 1036 format.
|
static String |
PATTERN_RFC1123
已过时。
Date format pattern used to parse HTTP date headers in RFC 1123 format.
|
public static final String PATTERN_RFC1123
public static final String PATTERN_RFC1036
public static Date parseDate(String dateValue) throws DateParseException
dateValue - the date value to parseDateParseException - if the value could not be parsed using any of the
supported date formatspublic static Date parseDate(String dateValue, Collection dateFormats) throws DateParseException
dateValue - the date value to parsedateFormats - the date formats to useDateParseException - if none of the dataFormats could parse the dateValueCopyright © 2017. All rights reserved.