MCPcopy Create free account
hub / github.com/numpy/numpy / PyArray_DatetimeToDatetimeStruct

Function PyArray_DatetimeToDatetimeStruct

numpy/core/src/multiarray/datetime.c:610–619  ·  view source on GitHub ↗

NUMPY_API * Fill the datetime struct from the value and resolution unit. * * TO BE REMOVED - NOT USED INTERNALLY. */

Source from the content-addressed store, hash-verified

608 * TO BE REMOVED - NOT USED INTERNALLY.
609 */
610NPY_NO_EXPORT void
611PyArray_DatetimeToDatetimeStruct(
612 npy_datetime NPY_UNUSED(val), NPY_DATETIMEUNIT NPY_UNUSED(fr),
613 npy_datetimestruct *result)
614{
615 PyErr_SetString(PyExc_RuntimeError,
616 "The NumPy PyArray_DatetimeToDatetimeStruct function has "
617 "been removed");
618 memset(result, -1, sizeof(npy_datetimestruct));
619}
620
621/*
622 * FIXME: Overflow is not handled at all

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected