pyinterp.core.dateutils.time

pyinterp.core.dateutils.time(array: numpy.ndarray) numpy.typing.NDArray[pyinterp::dateutils::Time]

Extract the time part from a datetime64 array.

Extracts the hour, minute, and second components from numpy datetime64 values and returns them as a structured array.

Parameters:

array – Numpy array of datetime64 to process.

Returns:

hour, minute, and second.

Return type:

Structured numpy array containing three fields