com.amazonaws.util
Class DateUtils

java.lang.Object
  extended by com.amazonaws.util.DateUtils

@ThreadSafe
public class DateUtils
extends java.lang.Object

Utilities for parsing and formatting dates.


Constructor Summary
DateUtils()
           
 
Method Summary
 java.lang.String formatIso8601Date(java.util.Date date)
          Deprecated. by the more efficient static method formatISO8601Date(Date)
static java.lang.String formatISO8601Date(java.util.Date date)
          Formats the specified date as an ISO 8601 string.
 java.lang.String formatRfc822Date(java.util.Date date)
          Deprecated. by the more efficient static method formatRFC822Date(Date)
static java.lang.String formatRFC822Date(java.util.Date date)
          Formats the specified date as an RFC 822 string.
 java.util.Date parseCompressedIso8601Date(java.lang.String dateString)
          Deprecated. by the more efficient static method parseCompressedISO8601Date(String)
static java.util.Date parseCompressedISO8601Date(java.lang.String dateString)
          Parses the specified date string as a compressedIso8601DateFormat ("yyyyMMdd'T'HHmmss'Z'") and returns the Date object.
 java.util.Date parseIso8601Date(java.lang.String dateString)
          Deprecated. by the more efficient static method parseISO8601Date(String)
static java.util.Date parseISO8601Date(java.lang.String dateString)
          Parses the specified date string as an ISO 8601 date and returns the Date object.
 java.util.Date parseRfc822Date(java.lang.String dateString)
          Deprecated. by the more efficient static method parseRFC822Date(String)
static java.util.Date parseRFC822Date(java.lang.String dateString)
          Parses the specified date string as an RFC 822 date and returns the Date object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateUtils

public DateUtils()
Method Detail

parseIso8601Date

@Deprecated
public java.util.Date parseIso8601Date(java.lang.String dateString)
Deprecated. by the more efficient static method parseISO8601Date(String)


parseISO8601Date

public static java.util.Date parseISO8601Date(java.lang.String dateString)
Parses the specified date string as an ISO 8601 date and returns the Date object.

Parameters:
dateString - The date string to parse.
Returns:
The parsed Date object.

formatIso8601Date

@Deprecated
public java.lang.String formatIso8601Date(java.util.Date date)
Deprecated. by the more efficient static method formatISO8601Date(Date)


formatISO8601Date

public static java.lang.String formatISO8601Date(java.util.Date date)
Formats the specified date as an ISO 8601 string.

Parameters:
date - The date to format.
Returns:
The ISO 8601 string representing the specified date.

parseRfc822Date

@Deprecated
public java.util.Date parseRfc822Date(java.lang.String dateString)
Deprecated. by the more efficient static method parseRFC822Date(String)


parseRFC822Date

public static java.util.Date parseRFC822Date(java.lang.String dateString)
Parses the specified date string as an RFC 822 date and returns the Date object.

Parameters:
dateString - The date string to parse.
Returns:
The parsed Date object.

formatRfc822Date

@Deprecated
public java.lang.String formatRfc822Date(java.util.Date date)
Deprecated. by the more efficient static method formatRFC822Date(Date)


formatRFC822Date

public static java.lang.String formatRFC822Date(java.util.Date date)
Formats the specified date as an RFC 822 string.

Parameters:
date - The date to format.
Returns:
The RFC 822 string representing the specified date.

parseCompressedIso8601Date

@Deprecated
public java.util.Date parseCompressedIso8601Date(java.lang.String dateString)
Deprecated. by the more efficient static method parseCompressedISO8601Date(String)


parseCompressedISO8601Date

public static java.util.Date parseCompressedISO8601Date(java.lang.String dateString)
Parses the specified date string as a compressedIso8601DateFormat ("yyyyMMdd'T'HHmmss'Z'") and returns the Date object.

Parameters:
dateString - The date string to parse.
Returns:
The parsed Date object.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.