common_helper/src/main/java/com/xiongyingqi/util/CalendarHelper.java
public static long compareDate(Date nearDate, Date farDate) {
        long nearMilli = nearDate.getTime();
        long farMilli = farDate.getTime();
        long result = nearMilli - farMilli;
        if (result < 0) {
            result = -result;
        }
        return result;
    }
public static long compareDate(Date nearDate, Date farDate) {
        long nearMilli = nearDate.getTime();
        long farMilli = farDate.getTime();
        long result = nearMilli - farMilli;
        if (result < 0) {
            result = -result;
        }
        return result;
    }
public static long compareDate ( Date nearDate , Date farDate ) { long nearMilli = nearDate . getTime ( ) ; long farMilli = farDate . getTime ( ) ; long result = nearMilli - farMilli ; if ( result < 0 ) { result = - result ; } return result ; }
返回两个日期的毫秒之差

@param nearDate
@param farDate
@return
返回两个日期的毫秒之差