public class HttpDateFormat extends Object
Modifier and Type | Method and Description |
---|---|
static List<SimpleDateFormat> |
getDateFormats()
Return an unmodifiable list of HTTP specified date formats to use for
parsing or formating
Date . |
static SimpleDateFormat |
getPreferedDateFormat()
Get the preferred HTTP specified date format (RFC 1123).
|
static Date |
readDate(String date)
Read a date.
|
public static List<SimpleDateFormat> getDateFormats()
Date
.
The list of date formats are scoped to the current thread and may be used without requiring to synchronize access to the instances when parsing or formatting.
public static SimpleDateFormat getPreferedDateFormat()
The date format is scoped to the current thread and may be used without requiring to synchronize access to the instance when parsing or formatting.
public static Date readDate(String date) throws ParseException
date
- the date as a string.ParseException
Copyright © 2013 Oracle Corporation. All rights reserved.