dt2cal

dt2cal(dt)[source]

Convert array of datetime64 to a calendar array of year, month, day, hour, minute, and seconds with these quantites indexed on the last axis.

Parameters

dt (datetime64 array) – numpy.ndarray of datetimes of arbitrary shape

Returns

cal (uint32 array (…, 6)) – calendar array with last axis representing year, month, day, hour, minute, second, microsecond