com.aliyun.oss.common.utils

## 类 DateUtil

- java.lang.Object
- - com.aliyun.oss.common.utils.DateUtil

-     public class DateUtil
      extends Object

  A simple utility class for date formating.

- - ### 构造器概要

    构造器
    构造器和说明
    `DateUtil()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `static String` | `formatAlternativeIso8601Date(Date date)`
    `static String` | `formatIso8601Date(Date date)`
    `static String` | `formatRfc822Date(Date date)` Formats Date to GMT string.
    `static Date` | `parseIso8601Date(String dateString)` Parse a date string in the format of ISO 8601.
    `static Date` | `parseRfc822Date(String dateString)` Parses a GMT-format string.

    - ### 从类继承的方法 java.lang.Object

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

- - ### 构造器详细资料

    - #### DateUtil

          public DateUtil()

  - ### 方法详细资料

    - #### formatRfc822Date

          public static String formatRfc822Date(Date date)

      Formats Date to GMT string.

    - #### parseRfc822Date

          public static Date parseRfc822Date(String dateString)
                                      throws ParseException

      Parses a GMT-format string.
      抛出:
        `ParseException`

    - #### formatIso8601Date

          public static String formatIso8601Date(Date date)

    - #### formatAlternativeIso8601Date

          public static String formatAlternativeIso8601Date(Date date)

    - #### parseIso8601Date

          public static Date parseIso8601Date(String dateString)
                                       throws ParseException

      Parse a date string in the format of ISO 8601.
      参数:
        `dateString` -
      返回:
      抛出:
        `ParseException`

Copyright © 2020. All Rights Reserved.