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

Function PyArray_TimedeltaToTimedeltaStruct

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

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

Source from the content-addressed store, hash-verified

630 * TO BE REMOVED - NOT USED INTERNALLY.
631 */
632NPY_NO_EXPORT void
633PyArray_TimedeltaToTimedeltaStruct(
634 npy_timedelta NPY_UNUSED(val), NPY_DATETIMEUNIT NPY_UNUSED(fr),
635 npy_timedeltastruct *result)
636{
637 PyErr_SetString(PyExc_RuntimeError,
638 "The NumPy PyArray_TimedeltaToTimedeltaStruct function has "
639 "been removed");
640 memset(result, -1, sizeof(npy_timedeltastruct));
641}
642
643/*
644 * Creates a datetime or timedelta dtype using a copy of the provided metadata.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected