pyinterp.core.dateutils.time

Contents

pyinterp.core.dateutils.time#

pyinterp.core.dateutils.time(array: object) → tuple[numpy.ndarray[dtype=uint8, shape=(*), order='C'], numpy.ndarray[dtype=uint8, shape=(*), order='C'], numpy.ndarray[dtype=uint8, shape=(*), order='C']]#

Extract the time part (hour, minute, second) from a numpy datetime64 array.

Parameters:

array – Input numpy datetime64 array.

Returns:

A tuple of three numpy arrays (hours, minutes, seconds).