List of utility methods to do Calendar Equal
boolean | isSameInstant(Calendar cal1, Calendar cal2) Checks if two calendar objects represent the same instant in time. This method compares the long millisecond time of the two objects. if (cal1 == null || cal2 == null) { throw new IllegalArgumentException("The date must not be null"); return cal1.getTime().getTime() == cal2.getTime().getTime(); |