datetime.issorted
datetime: TF = issorted (A)
datetime: TF = issorted (A, dim)
datetime: TF = issorted (A, direction)
datetime: TF = issorted (A, dim, direction)
Determine whether a datetime array is sorted.
TF = issorted (A) returns true if the elements
of the datetime array A are sorted in ascending (non-decreasing)
order along its first non-singleton dimension, and false
otherwise. For a matrix, every column (or row, depending on the operating
dimension) must be sorted for TF to be true. Not-A-Time
(NaT) elements are treated as greater than any other value, so an
array is sorted in ascending order only when its NaT elements
come last.
TF = issorted (A, dim) operates along dimension
dim.
TF = issorted (A, direction) tests whether the
elements are sorted according to direction, which may be one of:
'ascend' (default) tests non-decreasing order.
'descend' tests non-increasing order.
'monotonic' tests non-decreasing or non-increasing order.
'strictascend' tests strictly increasing order.
'strictdescend' tests strictly decreasing order.
'strictmonotonic' tests strictly monotonic order.
Source Code: datetime