public class RongDateUtils
extends java.lang.Object
Constructor and Description |
---|
RongDateUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatDate(java.util.Date date,
java.lang.String fromat) |
static java.lang.String |
getConversationFormatDate(long dateMillis,
android.content.Context context) |
static java.lang.String |
getConversationListFormatDate(long dateMillis,
android.content.Context context) |
static boolean |
isShowChatTime(long currentTime,
long preTime,
int interval) |
static boolean |
isTime24Hour(android.content.Context context) |
static int |
judgeDate(java.util.Date date) |
public static int judgeDate(java.util.Date date)
public static boolean isTime24Hour(android.content.Context context)
public static java.lang.String getConversationListFormatDate(long dateMillis, android.content.Context context)
public static java.lang.String getConversationFormatDate(long dateMillis, android.content.Context context)
public static boolean isShowChatTime(long currentTime, long preTime, int interval)
currentTime
- 当前时间preTime
- 之前的某个时间interval
- 时间间隔public static java.lang.String formatDate(java.util.Date date, java.lang.String fromat)