| java.lang.Object net.matuschek.http.HTTPDateTool
HTTPDateTool | public class HTTPDateTool (Code) | | Common place for date utils.
Copied and modified from org.apache.tomcat.util.buf
author: Daniel Stucky version: $Revision: 1.1 $ |
GMT_ZONE | final public static TimeZone GMT_ZONE(Code) | | GMT timezone - all HTTP dates are on GMT
|
RFC1123_PATTERN | final public static String RFC1123_PATTERN(Code) | | format for RFC 1123 date string -- "Sun, 06 Nov 1994 08:49:37 GMT"
|
asctimePattern | final public static String asctimePattern(Code) | | |
rfc1036Pattern | final public static String rfc1036Pattern(Code) | | |
rfc1123Format | final public static DateFormat rfc1123Format(Code) | | DateFormat to be used to format dates.
|
parseDate | public static long parseDate(String dateString)(Code) | | Parses a string for a date of the format rfc1123Format, rfc1036Format or asctimeFormat.
Returns -1, if any parameter is null or the string is of a not supported format.
the parsed date in milliseconds |
parseDate | public static long parseDate(String dateString, DateFormat[] format)(Code) | | Parses a string for a date of one of the given formats.
Returns -1, if any parameter is null or the string is of a not supported format.
the parsed date in milliseconds |
|
|