Package io.rong.imkit.utils

## Class RongDateUtils

- All Implemented Interfaces:

      public class RongDateUtils

- - ### Nested Class Summary

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

  - ### Field Summary

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

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RongDateUtils()` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static int` | `judgeDate(Context context, Date date)` |
    `static boolean` | `isTime24Hour(Context context)` |
    `static String` | `getConversationListFormatDate(long dateMillis, Context context)` |
    `static String` | `getConversationFormatDate(long dateMillis, Context context)` |
    `static boolean` | `isShowChatTime(Context context, long currentTime, long preTime, int interval)` |
    `static String` | `formatDate(Context context, Date date, String fromat)` |

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

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

- - ### Constructor Detail

    - #### RongDateUtils

          RongDateUtils()

  - ### Method Detail

    - #### judgeDate

           static int judgeDate(Context context, Date date)

    - #### isTime24Hour

           static boolean isTime24Hour(Context context)

    - #### getConversationListFormatDate

           static String getConversationListFormatDate(long dateMillis, Context context)

    - #### getConversationFormatDate

           static String getConversationFormatDate(long dateMillis, Context context)

    - #### isShowChatTime

           static boolean isShowChatTime(Context context, long currentTime, long preTime, int interval)

      Parameters:
        `currentTime` - 当前时间
        `preTime` - 之前的某个时间
        `interval` - 时间间隔
      Returns:

        true 间隔大于interval秒 false 小于等于

    - #### formatDate

           static String formatDate(Context context, Date date, String fromat)