Class DateUtils

java.lang.Object
io.milton.http.DateUtils

public class DateUtils extends Object
A utility class for parsing and formatting HTTP dates as used in cookies and other headers. This class handles dates as defined by RFC 2616 section 3.3.1 as well as some other common non-standard formats.
  • Field Details

    • PATTERN_WEBDAV

      public static final String PATTERN_WEBDAV
      See Also:
    • PATTERN_RESPONSE_HEADER

      public static final String PATTERN_RESPONSE_HEADER
      Used for response headers, and for modified date in propfind
      See Also:
    • PATTERN_RFC1123

      public static final String PATTERN_RFC1123
      Date format pattern used to parse HTTP date headers in RFC 1123 format.
      See Also:
    • PATTERN_RFC1123_HYPHENS

      public static final String PATTERN_RFC1123_HYPHENS
      Like PATTERN_RFC1123 but with hyphens between the date components
      See Also:
    • PATTERN_RFC1123_NOSECS

      public static final String PATTERN_RFC1123_NOSECS
      Date format pattern used to parse HTTP date headers in RFC 1123 format.
      See Also:
    • PATTERN_RFC1036

      public static final String PATTERN_RFC1036
      Date format pattern used to parse HTTP date headers in RFC 1036 format.
      See Also:
    • PATTERN_ASCTIME

      public static final String PATTERN_ASCTIME
      Date format pattern used to parse HTTP date headers in ANSI C asctime() format.
      See Also:
    • PATTERN_ASCTIME2

      public static final String PATTERN_ASCTIME2
      Another Date format pattern used to parse HTTP date headers in ANSI C asctime() format.
      See Also:
    • GMT

      public static final TimeZone GMT
  • Method Details