| 3755 | } |
| 3756 | |
| 3757 | static PyObject * |
| 3758 | array_datetime_data(PyObject *NPY_UNUSED(dummy), PyObject *args) |
| 3759 | { |
| 3760 | PyArray_Descr *dtype; |
| 3761 | PyArray_DatetimeMetaData *meta; |
| 3762 | |
| 3763 | if (!PyArg_ParseTuple(args, "O&:datetime_data", |
| 3764 | PyArray_DescrConverter, &dtype)) { |
| 3765 | return NULL; |
| 3766 | } |
| 3767 | |
| 3768 | meta = get_datetime_metadata_from_dtype(dtype); |
| 3769 | if (meta == NULL) { |
| 3770 | Py_DECREF(dtype); |
| 3771 | return NULL; |
| 3772 | } |
| 3773 | |
| 3774 | PyObject *res = convert_datetime_metadata_to_tuple(meta); |
| 3775 | Py_DECREF(dtype); |
| 3776 | return res; |
| 3777 | } |
| 3778 | |
| 3779 | |
| 3780 | static int |
nothing calls this directly
no test coverage detected