Class HttpUtil.HttpDate

java.lang.Object
com.landawn.abacus.http.HttpUtil.HttpDate
Enclosing class:
HttpUtil

public static final class HttpUtil.HttpDate extends Object
Copied from OkHttp under Apache License, Version 2.0. Best-effort parser for HTTP dates.
  • Field Details

    • UTC

      public static final TimeZone UTC
      GMT and UTC are equivalent for our purposes.
    • MAX_DATE

      public static final long MAX_DATE
      The last four-digit year: "Fri, 31 Dec 9999 23:59:59 GMT".
      See Also:
  • Method Details

    • parse

      public static Date parse(String value)
      Returns the date for value. Returns null if the value couldn't be parsed.
    • format

      public static String format(Date value)
      Returns the string for value.