datetime

Methods

Method Reference: datetime.isequaln

datetime: TF = isequaln (A, B)
datetime: TF = isequaln (A, B, …)

Test datetime arrays for equality, treating Not-A-Time as equal.

TF = isequaln (A, B) is identical to isequal (A, B) except that Not-A-Time (NaT) elements are treated as equal to one another, in the same way that isequaln treats NaN. It 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 either the same point in time or both NaT, and false otherwise.

Additional arrays may be supplied, as in isequaln (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