public class HttpDateFormat extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static SimpleDateFormat |
format |
| 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 final SimpleDateFormat format
public static String toString(long time)
public static Date toDate(String dateString) throws ParseException
ParseExceptionpublic static long toLong(String dateString) throws ParseException
ParseExceptionCopyright © 2007, 2014, Oracle and/or its affiliates. All rights reserved.