NUMPY_API * Fill the datetime struct from the value and resolution unit. * * TO BE REMOVED - NOT USED INTERNALLY. */
| 608 | * TO BE REMOVED - NOT USED INTERNALLY. |
| 609 | */ |
| 610 | NPY_NO_EXPORT void |
| 611 | PyArray_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 |
nothing calls this directly
no outgoing calls
no test coverage detected