Package io.rong.imkit.picture.tools

## Class DateUtils

- All Implemented Interfaces:

      public class DateUtils

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static DateUtils` | `getInstance()` |
    `int` | `dateDiffer(long d)` | 判断两个时间戳相差多少秒
    `String` | `formatDurationTime(long duration)` | 时间戳转换成时间格式
    `String` | `getCreateFileName(String prefix)` | 根据时间戳创建文件名
    `String` | `cdTime(long sTime, long eTime)` | 计算两个时间间隔

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

  - ### Method Detail

    - #### getInstance

           static DateUtils getInstance()

    - #### dateDiffer

           int dateDiffer(long d)

      判断两个时间戳相差多少秒

    - #### formatDurationTime

           String formatDurationTime(long duration)

      时间戳转换成时间格式

    - #### getCreateFileName

           String getCreateFileName(String prefix)

      根据时间戳创建文件名

      Parameters:
        `prefix` - 前缀名

    - #### cdTime

           String cdTime(long sTime, long eTime)

      计算两个时间间隔