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 void` | `preloadDateFormats(Context context)` | 预加载常用的日期格式化器，避免首次在主线程创建导致ANR 建议在 IMCenter 初始化时调用 该方法支持多次调用，内部会确保只执行一次预加载
    `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 小于等于

    - #### preloadDateFormats

           static void preloadDateFormats(Context context)

      预加载常用的日期格式化器，避免首次在主线程创建导致ANR 建议在 IMCenter 初始化时调用 该方法支持多次调用，内部会确保只执行一次预加载

      Parameters:
        `context` - Context

    - #### formatDate

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