[3.4.0-map-sdk] add note
This commit is contained in:
@@ -35,11 +35,7 @@ public class DateTimeUtil {
|
||||
public static boolean compareDateIsCurrentDay(Calendar targetCalendar){
|
||||
Calendar currentCale = DateTimeUtils.getCurrentDateTime();
|
||||
String currentDay = formatCalendarToString(currentCale, yyyy_MM_dd);
|
||||
if (currentDay.equals(formatCalendarToString(targetCalendar, yyyy_MM_dd))){
|
||||
return true;
|
||||
}else {
|
||||
return false;
|
||||
}
|
||||
return currentDay.equals(formatCalendarToString(targetCalendar, yyyy_MM_dd));
|
||||
}
|
||||
|
||||
public static Calendar formatLongToCalendar(long time){
|
||||
|
||||
@@ -8,6 +8,9 @@ import java.util.Date;
|
||||
import java.util.Locale;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* thread not safe , recommend to use {@link TimeUtils}
|
||||
*/
|
||||
public class DateTimeUtils {
|
||||
|
||||
public static final int DATETIME_FIELD_REFERSH = 10; // 刷新时间(分钟),
|
||||
|
||||
@@ -23,6 +23,9 @@ import com.mogo.eagle.core.utilcode.constant.TimeConstants;
|
||||
* blog : http://blankj.com
|
||||
* time : 2016/08/02
|
||||
* desc : utils about time
|
||||
*
|
||||
* DateTimeFormatter or ThreadLocal thread safe
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public final class TimeUtils {
|
||||
|
||||
Reference in New Issue
Block a user