@@ -132,13 +132,15 @@ Macros to create objects:
132
132
resulting number of microseconds and seconds lie in the ranges documented for
133
133
:class:`datetime.timedelta` objects.
134
134
135
+
135
136
.. c:function:: PyObject* PyTimeZone_FromOffset(PyDateTime_DeltaType* offset)
136
137
137
138
Return a :class:`datetime.timezone` object with an unnamed fixed offset
138
139
represented by the *offset* argument.
139
140
140
141
.. versionadded:: 3.7
141
142
143
+
142
144
.. c:function:: PyObject* PyTimeZone_FromOffsetAndName(PyDateTime_DeltaType* offset, PyUnicode* name)
143
145
144
146
Return a :class:`datetime.timezone` object with a fixed offset represented
@@ -190,18 +192,21 @@ must not be ``NULL``, and the type is not checked:
190
192
191
193
Return the microsecond, as an int from 0 through 999999.
192
194
195
+
193
196
.. c :function :: int PyDateTime_DATE_GET_FOLD (PyDateTime_DateTime *o)
194
197
195
198
Return the fold, as an int from 0 through 1.
196
199
197
200
.. versionadded :: 3.6
198
201
202
+
199
203
.. c :function :: PyObject* PyDateTime_DATE_GET_TZINFO (PyDateTime_DateTime *o)
200
204
201
205
Return the tzinfo (which may be ``None ``).
202
206
203
207
.. versionadded:: 3.10
204
208
209
+
205
210
Macros to extract fields from time objects. The argument must be an instance of
206
211
:c:data:`PyDateTime_Time`, including subclasses. The argument must not be ``NULL``,
207
212
and the type is not checked:
@@ -225,12 +230,14 @@ and the type is not checked:
225
230
226
231
Return the microsecond, as an int from 0 through 999999.
227
232
233
+
228
234
.. c :function :: int PyDateTime_TIME_GET_FOLD (PyDateTime_Time *o)
229
235
230
236
Return the fold, as an int from 0 through 1.
231
237
232
238
.. versionadded :: 3.6
233
239
240
+
234
241
.. c :function :: PyObject* PyDateTime_TIME_GET_TZINFO (PyDateTime_Time *o)
235
242
236
243
Return the tzinfo (which may be ``None ``).
0 commit comments