Calendar.Compare(Calendar) Calendar.Compare(Calendar) Calendar.Compare(Calendar) Calendar.Compare(Calendar) Calendar.Compare(Calendar) Method

Definition

Compares this calendar to another Calendar object and indicates whether the DateTime of one is earlier, equal to, or later than that of the other.

public : int Compare(Calendar other)
int32_t Compare(Calendar other) const;
public int Compare(Calendar other)
Public Function Compare(other As Calendar) As int
var int = calendar.compare(other);

Parameters

other
Calendar Calendar Calendar Calendar Calendar

The Calendar object to compare to the current calendar.

Returns

int int int

One of the following values:

Return valueDescription
Less than zeroThe date and time of this calendar is earlier than that of *other*.
ZeroThe date and times are equal.
Greater than zeroThe date and time of this calendar is later than that of *other*.