org.apache.tomcat.util.buf
public class DateTool extends Object
Deprecated: Will be replaced with a more efficient impl, based on FastDateFormat, with an API using less objects.
Common place for date utils.Field Summary | |
---|---|
static String | asctimePattern |
static TimeZone | GMT_ZONE GMT timezone - all HTTP dates are on GMT |
static String | rfc1036Pattern |
static String | RFC1123_PATTERN format for RFC 1123 date string -- "Sun, 06 Nov 1994 08:49:37 GMT" |
Method Summary | |
---|---|
static String | format1123(Date d) |
static String | format1123(Date d, DateFormat df) |
static void | formatOldCookie(Date d, StringBuffer sb, FieldPosition fp) |
static String | formatOldCookie(Date d) |
static long | parseDate(String dateString) Called from HttpServletRequest.getDateHeader().
|
static long | parseDate(String dateString, DateFormat[] format) |