Android Utililty Methods Calendar Equal

List of utility methods to do Calendar Equal

Description

The list of methods to do Calendar Equal are organized into topic(s).

Method

booleanisSameInstant(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();