cpython/Modules/_testcapi/datetime.c

#include "parts.h"

#include "datetime.h"             // PyDateTimeAPI


static int test_run_counter =;

static PyObject *
test_datetime_capi(PyObject *self, PyObject *args)
{}

/* Functions exposing the C API type checking for testing */
#define MAKE_DATETIME_CHECK_FUNC                                                     \

static PyObject *
datetime_check_date(PyObject *self, PyObject *args)
{}

static PyObject *
datetime_check_time(PyObject *self, PyObject *args)
{}

static PyObject *
datetime_check_datetime(PyObject *self, PyObject *args)
{}

static PyObject *
datetime_check_delta(PyObject *self, PyObject *args)
{}

static PyObject *
datetime_check_tzinfo(PyObject *self, PyObject *args)
{}
#undef MAKE_DATETIME_CHECK_FUNC


/* Makes three variations on timezone representing UTC-5:
   1. timezone with offset and name from PyDateTimeAPI
   2. timezone with offset and name from PyTimeZone_FromOffsetAndName
   3. timezone with offset (no name) from PyTimeZone_FromOffset
*/
static PyObject *
make_timezones_capi(PyObject *self, PyObject *args)
{}

static PyObject *
get_timezones_offset_zero(PyObject *self, PyObject *args)
{}

static PyObject *
get_timezone_utc_capi(PyObject *self, PyObject *args)
{}

static PyObject *
get_date_fromdate(PyObject *self, PyObject *args)
{}

static PyObject *
get_datetime_fromdateandtime(PyObject *self, PyObject *args)
{}

static PyObject *
get_datetime_fromdateandtimeandfold(PyObject *self, PyObject *args)
{}

static PyObject *
get_time_fromtime(PyObject *self, PyObject *args)
{}

static PyObject *
get_time_fromtimeandfold(PyObject *self, PyObject *args)
{}

static PyObject *
get_delta_fromdsu(PyObject *self, PyObject *args)
{}

static PyObject *
get_date_fromtimestamp(PyObject *self, PyObject *args)
{}

static PyObject *
get_datetime_fromtimestamp(PyObject *self, PyObject *args)
{}

static PyObject *
test_PyDateTime_GET(PyObject *self, PyObject *obj)
{}

static PyObject *
test_PyDateTime_DATE_GET(PyObject *self, PyObject *obj)
{}

static PyObject *
test_PyDateTime_TIME_GET(PyObject *self, PyObject *obj)
{}

static PyObject *
test_PyDateTime_DELTA_GET(PyObject *self, PyObject *obj)
{}

static PyMethodDef test_methods[] =;

int
_PyTestCapi_Init_DateTime(PyObject *mod)
{}


/* ---------------------------------------------------------------------------
 * Test module for subinterpreters.
 */

static int
_testcapi_datetime_exec(PyObject *mod)
{}

static PyModuleDef_Slot _testcapi_datetime_slots[] =;

static struct PyModuleDef _testcapi_datetime_module =;

PyMODINIT_FUNC
PyInit__testcapi_datetime(void)
{}