|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.util.DateUtils
@ThreadSafe public class DateUtils
Utilities for parsing and formatting dates.
Field Summary | |
---|---|
protected static org.joda.time.format.DateTimeFormatter |
alternateIso8601DateFormat
Alternate ISO 8601 format without fractional seconds |
protected static org.joda.time.format.DateTimeFormatter |
compressedIso8601DateFormat
This is another ISO 8601 format that's used in clock skew error response |
protected static org.joda.time.format.DateTimeFormatter |
iso8601DateFormat
ISO 8601 format |
protected static org.joda.time.format.DateTimeFormatter |
rfc822DateFormat
RFC 822 format |
Constructor Summary | |
---|---|
DateUtils()
|
Method Summary | |
---|---|
String |
formatIso8601Date(Date date)
Deprecated. by the more efficient static method formatISO8601Date(Date) |
static String |
formatISO8601Date(Date date)
Formats the specified date as an ISO 8601 string. |
String |
formatRfc822Date(Date date)
Deprecated. by the more efficient static method formatRFC822Date(Date) |
static String |
formatRFC822Date(Date date)
Formats the specified date as an RFC 822 string. |
Date |
parseCompressedIso8601Date(String dateString)
Deprecated. by the more efficient static method parseCompressedISO8601Date(String) |
static Date |
parseCompressedISO8601Date(String dateString)
Parses the specified date string as a compressedIso8601DateFormat ("yyyyMMdd'T'HHmmss'Z'") and returns the Date object. |
Date |
parseIso8601Date(String dateString)
Deprecated. by the more efficient static method parseISO8601Date(String) |
static Date |
parseISO8601Date(String dateString)
Parses the specified date string as an ISO 8601 date and returns the Date object. |
Date |
parseRfc822Date(String dateString)
Deprecated. by the more efficient static method parseRFC822Date(String) |
static Date |
parseRFC822Date(String dateString)
Parses the specified date string as an RFC 822 date and returns the Date object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.joda.time.format.DateTimeFormatter iso8601DateFormat
protected static final org.joda.time.format.DateTimeFormatter alternateIso8601DateFormat
protected static final org.joda.time.format.DateTimeFormatter rfc822DateFormat
protected static final org.joda.time.format.DateTimeFormatter compressedIso8601DateFormat
Constructor Detail |
---|
public DateUtils()
Method Detail |
---|
@Deprecated public Date parseIso8601Date(String dateString)
parseISO8601Date(String)
public static Date parseISO8601Date(String dateString)
dateString
- The date string to parse.
@Deprecated public String formatIso8601Date(Date date)
formatISO8601Date(Date)
public static String formatISO8601Date(Date date)
date
- The date to format.
@Deprecated public Date parseRfc822Date(String dateString)
parseRFC822Date(String)
public static Date parseRFC822Date(String dateString)
dateString
- The date string to parse.
@Deprecated public String formatRfc822Date(Date date)
formatRFC822Date(Date)
public static String formatRFC822Date(Date date)
date
- The date to format.
@Deprecated public Date parseCompressedIso8601Date(String dateString)
parseCompressedISO8601Date(String)
public static Date parseCompressedISO8601Date(String dateString)
dateString
- The date string to parse.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |