com.amazonaws.util

## クラス DateUtils

- java.lang.Object
- - com.amazonaws.util.DateUtils

-     public class DateUtils
      extends java.lang.Object

  Utilities for parsing and formatting dates.

  Note that this class doesn't use static methods because of the synchronization issues with SimpleDateFormat. This lets synchronization be done on a per-object level, instead of on a per-class level.

- - ### フィールドの概要

    フィールド
    修飾子とタイプ | フィールドと説明
    --- | ---
    `protected java.text.SimpleDateFormat` | `alternateIso8601DateFormat` Alternate ISO 8601 format without fractional seconds
    `protected java.text.SimpleDateFormat` | `compressedIso8601DateFormat` This is another ISO 8601 format that's used in clock skew error response
    `protected java.text.SimpleDateFormat` | `iso8601DateFormat` ISO 8601 format
    `protected java.text.SimpleDateFormat` | `rfc822DateFormat` RFC 822 format

  - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `DateUtils()` Constructs a new DateUtils object, ready to parse/format dates.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `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)` Formats the specified date as an RFC 822 string.
    `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)` Parses the specified date string as an ISO 8601 date and returns the Date object.
    `java.util.Date` | `parseRfc822Date(java.lang.String dateString)` Parses the specified date string as an RFC 822 date and returns the Date object.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### フィールドの詳細

    - #### iso8601DateFormat

          protected final java.text.SimpleDateFormat iso8601DateFormat

      ISO 8601 format

    - #### alternateIso8601DateFormat

          protected final java.text.SimpleDateFormat alternateIso8601DateFormat

      Alternate ISO 8601 format without fractional seconds

    - #### rfc822DateFormat

          protected final java.text.SimpleDateFormat rfc822DateFormat

      RFC 822 format

    - #### compressedIso8601DateFormat

          protected final java.text.SimpleDateFormat compressedIso8601DateFormat

      This is another ISO 8601 format that's used in clock skew error response

  - ### コンストラクタの詳細

    - #### DateUtils

          public DateUtils()

      Constructs a new DateUtils object, ready to parse/format dates.

  - ### メソッドの詳細

    - #### parseIso8601Date

          public java.util.Date parseIso8601Date(java.lang.String dateString)
                                          throws java.text.ParseException

      Parses the specified date string as an ISO 8601 date and returns the Date object.
      パラメータ:
        `dateString` - The date string to parse.
      戻り値:
        The parsed Date object.
      例外:
        `java.text.ParseException` - If the date string could not be parsed.

    - #### formatIso8601Date

          public java.lang.String formatIso8601Date(java.util.Date date)

      Formats the specified date as an ISO 8601 string.
      パラメータ:
        `date` - The date to format.
      戻り値:
        The ISO 8601 string representing the specified date.

    - #### parseRfc822Date

          public java.util.Date parseRfc822Date(java.lang.String dateString)
                                         throws java.text.ParseException

      Parses the specified date string as an RFC 822 date and returns the Date object.
      パラメータ:
        `dateString` - The date string to parse.
      戻り値:
        The parsed Date object.
      例外:
        `java.text.ParseException` - If the date string could not be parsed.

    - #### formatRfc822Date

          public java.lang.String formatRfc822Date(java.util.Date date)

      Formats the specified date as an RFC 822 string.
      パラメータ:
        `date` - The date to format.
      戻り値:
        The RFC 822 string representing the specified date.

    - #### parseCompressedIso8601Date

          public java.util.Date parseCompressedIso8601Date(java.lang.String dateString)
                                                    throws java.text.ParseException

      Parses the specified date string as a compressedIso8601DateFormat ("yyyyMMdd'T'HHmmss'Z'") and returns the Date object.
      パラメータ:
        `dateString` - The date string to parse.
      戻り値:
        The parsed Date object.
      例外:
        `java.text.ParseException` - If the date string could not be parsed.