* Returns true if the object is something that is best considered * a Datetime or Timedelta, false otherwise. */
| 3109 | * a Datetime or Timedelta, false otherwise. |
| 3110 | */ |
| 3111 | NPY_NO_EXPORT npy_bool |
| 3112 | is_any_numpy_datetime_or_timedelta(PyObject *obj) |
| 3113 | { |
| 3114 | return obj != NULL && |
| 3115 | (is_any_numpy_datetime(obj) || |
| 3116 | is_any_numpy_timedelta(obj)); |
| 3117 | } |
| 3118 | |
| 3119 | /* |
| 3120 | * Converts an array of PyObject * into datetimes and/or timedeltas, |
no test coverage detected