public class HttpDateFormat extends Object
Sun, 06 Nov 1994 08:49:37 GMTSee sec. 3.3.1 in RFC 2616 and sec. 7.1.1.1 in RFC 7231.
Modifier and Type | Field and Description |
---|---|
protected static SimpleDateFormat |
format |
protected static TimeZone |
gmt |
Constructor and Description |
---|
HttpDateFormat() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
static Date |
toDate(String dateString) |
static long |
toLong(String dateString) |
static String |
toString(Calendar cal) |
static String |
toString(Date date)
Get the HTTP format of the specified date.
|
static String |
toString(long time) |
protected static SimpleDateFormat format
protected static TimeZone gmt
public static String toString(long time)
public static Date toDate(String dateString) throws ParseException
ParseException
public static long toLong(String dateString) throws ParseException
ParseException
Copyright © 2021 The Apache Software Foundation