public final class FastHttpDateFormat extends Object
Constructor and Description |
---|
FastHttpDateFormat() |
Modifier and Type | Method and Description |
---|---|
static String |
formatDate(long value)
Get the HTTP format of the specified date.
|
static String |
getCurrentDate()
Get the current date in HTTP format.
|
static long |
parseDate(String value)
Try to parse the given date as an HTTP date.
|
public static final String getCurrentDate()
public static final String formatDate(long value)
value
- The datepublic static final long parseDate(String value)
value
- The HTTP date-1
if the value cannot be
parsedCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.