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

Function is_any_numpy_datetime_or_timedelta

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

* Returns true if the object is something that is best considered * a Datetime or Timedelta, false otherwise. */

Source from the content-addressed store, hash-verified

3109 * a Datetime or Timedelta, false otherwise.
3110 */
3111NPY_NO_EXPORT npy_bool
3112is_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,

Callers 1

PyArray_ArangeObjFunction · 0.85

Calls 1

is_any_numpy_timedeltaFunction · 0.85

Tested by

no test coverage detected