Searched refs:PyDateTimeAPI (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Include/ |
D | datetime.h | 204 static PyDateTime_CAPI *PyDateTimeAPI = NULL; variable 207 PyDateTimeAPI = (PyDateTime_CAPI *)PyCapsule_Import(PyDateTime_CAPSULE_NAME, 0) 210 #define PyDateTime_TimeZone_UTC PyDateTimeAPI->TimeZone_UTC 213 #define PyDate_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateType) 214 #define PyDate_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateType) 216 #define PyDateTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateTimeType) 217 #define PyDateTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateTimeType) 219 #define PyTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->TimeType) 220 #define PyTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->TimeType) 222 #define PyDelta_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DeltaType) [all …]
|
/external/python/cpython2/Include/ |
D | datetime.h | 188 static PyDateTime_CAPI *PyDateTimeAPI = NULL; variable 191 PyDateTimeAPI = (PyDateTime_CAPI *)PyCapsule_Import(PyDateTime_CAPSULE_NAME, 0) 194 #define PyDate_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateType) 195 #define PyDate_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateType) 197 #define PyDateTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateTimeType) 198 #define PyDateTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateTimeType) 200 #define PyTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->TimeType) 201 #define PyTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->TimeType) 203 #define PyDelta_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DeltaType) 204 #define PyDelta_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DeltaType) [all …]
|
/external/python/cpython2/Doc/c-api/ |
D | datetime.rst | 13 into a static variable, :c:data:`PyDateTimeAPI`, that is used by the following
|
/external/python/cpython3/Doc/c-api/ |
D | datetime.rst | 13 into a static variable, :c:data:`PyDateTimeAPI`, that is used by the following
|
/external/python/cpython3/Modules/ |
D | _testcapimodule.c | 2210 if (PyDateTimeAPI) { in test_datetime_capi() 2224 if (PyDateTimeAPI) in test_datetime_capi() 2280 PyObject *est_zone_capi = PyDateTimeAPI->TimeZone_FromTimeZone(offset, name); in make_timezones_capi() 2329 Py_INCREF(PyDateTimeAPI->TimeZone_UTC); in get_timezone_utc_capi() 2330 return PyDateTimeAPI->TimeZone_UTC; in get_timezone_utc_capi()
|
/external/python/cpython2/Modules/ |
D | _testcapimodule.c | 1929 if (PyDateTimeAPI) { in test_datetime_capi() 1942 if (PyDateTimeAPI) in test_datetime_capi()
|