pyinterp.core.dateutils.date

pyinterp.core.dateutils.date(array: numpy.ndarray) numpy.ndarray[pyinterp::dateutils::Date]

Return the date part of the dates.

Parameters

array (numpy.ndarray) – Numpy array of datetime64 to process.

Returns

A structured numpy array containing three fields: year, month and day.

Return type

numpy.ndarray