Home
last modified time | relevance | path

Searched refs:PyDateTime_DateTime (Results 1 – 4 of 4) sorted by relevance

/third_party/python/Include/
Ddatetime.h114 } PyDateTime_DateTime; /* hastzinfo true */ typedef
127 #define PyDateTime_DATE_GET_HOUR(o) (((PyDateTime_DateTime*)o)->data[4])
128 #define PyDateTime_DATE_GET_MINUTE(o) (((PyDateTime_DateTime*)o)->data[5])
129 #define PyDateTime_DATE_GET_SECOND(o) (((PyDateTime_DateTime*)o)->data[6])
131 ((((PyDateTime_DateTime*)o)->data[7] << 16) | \
132 (((PyDateTime_DateTime*)o)->data[8] << 8) | \
133 ((PyDateTime_DateTime*)o)->data[9])
134 #define PyDateTime_DATE_GET_FOLD(o) (((PyDateTime_DateTime*)o)->fold)
136 ((PyDateTime_DateTime *)(o))->tzinfo : Py_None)
/third_party/python/Modules/
D_datetimemodule.c650 size_t size = aware ? sizeof(PyDateTime_DateTime) : sizeof(_PyDateTime_BaseDateTime); in datetime_alloc()
894 PyDateTime_DateTime *self; in new_datetime_ex2()
907 self = (PyDateTime_DateTime *) (type->tp_alloc(type, aware)); in new_datetime_ex2()
1139 tzinfo = ((PyDateTime_DateTime *)self)->tzinfo; in get_tzinfo_member()
3646 static PyObject *add_datetime_timedelta(PyDateTime_DateTime *date,
3691 result = add_datetime_timedelta((PyDateTime_DateTime *)dt, delta, 1); in tzinfo_fromutc()
3702 Py_SETREF(result, add_datetime_timedelta((PyDateTime_DateTime *)result, in tzinfo_fromutc()
3995 timezone_fromutc(PyDateTime_TimeZone *self, PyDateTime_DateTime *dt) in timezone_fromutc()
4759 datetime_hour(PyDateTime_DateTime *self, void *unused) in datetime_hour()
4765 datetime_minute(PyDateTime_DateTime *self, void *unused) in datetime_minute()
[all …]
D_zoneinfo.c575 ((PyDateTime_DateTime *)tmp)->fold = 1; in zoneinfo_fromutc()
/third_party/python/Doc/c-api/
Ddatetime.rst152 :c:data:`PyDateTime_DateTime`). The argument must not be ``NULL``, and the type is
171 instance of :c:data:`PyDateTime_DateTime`, including subclasses. The argument
174 .. c:function:: int PyDateTime_DATE_GET_HOUR(PyDateTime_DateTime *o)
179 .. c:function:: int PyDateTime_DATE_GET_MINUTE(PyDateTime_DateTime *o)
184 .. c:function:: int PyDateTime_DATE_GET_SECOND(PyDateTime_DateTime *o)
189 .. c:function:: int PyDateTime_DATE_GET_MICROSECOND(PyDateTime_DateTime *o)
193 .. c:function:: PyObject* PyDateTime_DATE_GET_TZINFO(PyDateTime_DateTime *o)