datetime.isequal
datetime: TF = isequal (A, B)
datetime: TF = isequal (A, B, …)
Test datetime arrays for equality.
TF = isequal (A, B) returns a logical scalar
TF, which is true if the datetime arrays A and
B are the same size and each pair of corresponding elements is the
same point in time, and false otherwise. As with NaN,
Not-A-Time (NaT) elements are never equal, so any NaT in
either array makes the result false; use isequaln to treat
NaT elements as equal.
Additional arrays may be supplied, as in isequal (A, B,
C, …), in which case TF is true only when all
of the arrays are equal to one another. Any input argument that is not a
datetime array, or a datetime array whose time zone is not compatible
with the others (one zoned and one unzoned), makes the result
false rather than raising an error. Zoned arrays are compared by
their absolute instants, so equal instants in different time zones are
equal.
Source Code: datetime