# RongDateUtils

public class RongDateUtils

## Constructors

RongDateUtils
Link copied to clipboard
public void RongDateUtils()

## Functions

formatDate
Link copied to clipboard
public static String formatDate(Context context, Date date, String fromat)
getConversationFormatDate
Link copied to clipboard
public static String getConversationFormatDate(long dateMillis, Context context)
getConversationListFormatDate
Link copied to clipboard
public static String getConversationListFormatDate(long dateMillis, Context context)
isShowChatTime
Link copied to clipboard
public static boolean isShowChatTime(Context context, long currentTime, long preTime, int interval)
isTime24Hour
Link copied to clipboard
public static boolean isTime24Hour(Context context)
judgeDate
Link copied to clipboard
public static int judgeDate(Context context, Date date)
preloadDateFormats
Link copied to clipboard
public static void preloadDateFormats(Context context)
预加载常用的日期格式化器，避免首次在主线程创建导致ANR 建议在 IMCenter 初始化时调用 该方法支持多次调用，内部会确保只执行一次预加载