Package com.landawn.abacus.http
Class HttpUtil.HttpDate
java.lang.Object
com.landawn.abacus.http.HttpUtil.HttpDate
- Enclosing class:
- HttpUtil
Copied from OkHttp under Apache License, Version 2.0.
Best-effort parser for HTTP dates.
-
Field Summary
-
Method Summary
-
Field Details
-
UTC
GMT and UTC are equivalent for our purposes. -
MAX_DATE
public static final long MAX_DATEThe last four-digit year: "Fri, 31 Dec 9999 23:59:59 GMT".- See Also:
-
-
Method Details
-
parse
Returns the date forvalue
. Returns null if the value couldn't be parsed.- Parameters:
value
-- Returns:
-
format
Returns the string forvalue
.- Parameters:
value
-- Returns:
-