|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.util.DateUtils
public class DateUtils
Date utility functions.
| Constructor Summary | |
|---|---|
DateUtils()
|
|
| Method Summary | |
|---|---|
static String |
createHttpDate()
Generate an RFC 822 date for use in the Date HTTP header. |
static String |
iso8601()
Encodes date value into ISO8601 that can be compared lexicographically. |
static String |
iso8601(Date date)
|
static Date |
iso8601ToDate(String dateString)
Converts the specified string in ISO 8601 format to a Date
instance. |
static Date |
parseHttpDate(String httpDateString)
Utility method for parsing an HTTP Date header. |
static String |
prettyS3Date(String dateString)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateUtils()
| Method Detail |
|---|
public static String prettyS3Date(String dateString)
public static Date parseHttpDate(String httpDateString)
throws org.apache.commons.httpclient.util.DateParseException
httpDateString - The date string to parse.
org.apache.commons.httpclient.util.DateParseException - If the date is not in the expected format.public static String createHttpDate()
public static String iso8601()
public static String iso8601(Date date)
public static Date iso8601ToDate(String dateString)
throws ParseException
Date
instance.
dateString - The string to convert.
Date instance.
ParseException - If the date could not be parsed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||