int64_from_datetime64#
- spacekernel.time.int64_from_datetime64(ndarray datetime64) ndarray#
Convert a NumPy datetime64[ns] array to its underlying int64 representation.
- Parameters:
- datetime64_arrndarray of datetime64[ns], shape (N,)
Input array of NumPy datetime values (nanosecond precision).
- Returns:
- int64_arrndarray of int64, shape (N,)
Array of 64-bit integers giving the number of nanoseconds since the Unix epoch for each input datetime.