datetime

Methods

Method Reference: datetime.circshift

datetime: B = circshift (A, n)
datetime: B = circshift (A, n, dim)

Circularly shift the elements in a datetime array.

B = circshift (A, n) circularly shifts the elements of the datetime array A according to n. If n is a nonzero integer scalar, then the elements of A are shifted by n elements along the first non-singleton dimension of A. If n is a vector, it must not be longer that the number of dimensions of A with each value of n corresponding to a dimension in A. The sign of the value(s) in n specify the direction in the elements of A are shifted.

B = circshift (A, n, dim) circularly shifts the elements of the datetime array A along the dimension specified by dim. In this case, n must be a scalar integer value.

Source Code: datetime