• Home
  • Raw
  • Download

Lines Matching refs:PyDateTimeAPI

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)
223 #define PyDelta_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DeltaType)
225 #define PyTZInfo_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->TZInfoType)
226 #define PyTZInfo_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->TZInfoType)
230 PyDateTimeAPI->Date_FromDate(year, month, day, PyDateTimeAPI->DateType)
233 PyDateTimeAPI->DateTime_FromDateAndTime(year, month, day, hour, \
234 min, sec, usec, Py_None, PyDateTimeAPI->DateTimeType)
237 PyDateTimeAPI->DateTime_FromDateAndTimeAndFold(year, month, day, hour, \
238 min, sec, usec, Py_None, fold, PyDateTimeAPI->DateTimeType)
241 PyDateTimeAPI->Time_FromTime(hour, minute, second, usecond, \
242 Py_None, PyDateTimeAPI->TimeType)
245 PyDateTimeAPI->Time_FromTimeAndFold(hour, minute, second, usecond, \
246 Py_None, fold, PyDateTimeAPI->TimeType)
249 PyDateTimeAPI->Delta_FromDelta(days, seconds, useconds, 1, \
250 PyDateTimeAPI->DeltaType)
253 PyDateTimeAPI->TimeZone_FromTimeZone(offset, NULL)
256 PyDateTimeAPI->TimeZone_FromTimeZone(offset, name)
260 PyDateTimeAPI->DateTime_FromTimestamp( \
261 (PyObject*) (PyDateTimeAPI->DateTimeType), args, NULL)
264 PyDateTimeAPI->Date_FromTimestamp( \
265 (PyObject*) (PyDateTimeAPI->DateType), args)