isShowChatTime

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

Return

true if the gap is greater than interval seconds, false otherwise

Parameters

currentTime

current time

preTime

a previous time

interval

time interval