@@ -184,13 +184,14 @@ msgstr ""
184184msgid ""
185185"Return a :class:`datetime.timezone` object with an unnamed fixed offset "
186186"represented by the *offset* argument."
187- msgstr ""
187+ msgstr "返回一个 :class:`datetime.timezone` 对象,该对象具有以 *offset* 参数表示 的未命名固定时差。 "
188188
189189#: ../../c-api/datetime.rst:139
190190msgid ""
191191"Return a :class:`datetime.timezone` object with a fixed offset represented "
192192"by the *offset* argument and with tzname *name*."
193193msgstr ""
194+ "返回一个 :class:`datetime.timezone` 对象,该对象具有以 *offset* 参数表示的固定时差和时区名称 *name*。"
194195
195196#: ../../c-api/datetime.rst:145
196197msgid ""
@@ -199,10 +200,12 @@ msgid ""
199200":c:data:`PyDateTime_DateTime`). The argument must not be ``NULL``, and the "
200201"type is not checked:"
201202msgstr ""
203+ "一些用来从 date 对象中提取字段的宏。 参数必须是 :c:data:`PyDateTime_Date` 包括其子类 (例如 "
204+ ":c:data:`PyDateTime_DateTime`) 的实例。 参数必须不为 ``NULL``,并且类型不被会检查:"
202205
203206#: ../../c-api/datetime.rst:152
204207msgid "Return the year, as a positive int."
205- msgstr ""
208+ msgstr "以正整数的形式返回年份值。 "
206209
207210#: ../../c-api/datetime.rst:157
208211msgid "Return the month, as an int from 1 through 12."
@@ -218,6 +221,8 @@ msgid ""
218221"instance of :c:data:`PyDateTime_DateTime`, including subclasses. The "
219222"argument must not be ``NULL``, and the type is not checked:"
220223msgstr ""
224+ "一些用来从 datetime 对象中提取字段的宏。 参数必须是 :c:data:`PyDateTime_DateTime` 包括其子类的实例。 "
225+ "参数必须不为 ``NULL``,并且类型不会被检查:"
221226
222227#: ../../c-api/datetime.rst:171 ../../c-api/datetime.rst:195
223228msgid "Return the hour, as an int from 0 through 23."
@@ -241,13 +246,17 @@ msgid ""
241246"instance of :c:data:`PyDateTime_Time`, including subclasses. The argument "
242247"must not be ``NULL``, and the type is not checked:"
243248msgstr ""
249+ "一些用来从 time 对象中提取字段的宏。 参数必须是 :c:data:`PyDateTime_Time` 包括其子类的实例。 参数必须不为 "
250+ "``NULL``,并且类型不会被检查:"
244251
245252#: ../../c-api/datetime.rst:213
246253msgid ""
247254"Macros to extract fields from time delta objects. The argument must be an "
248255"instance of :c:data:`PyDateTime_Delta`, including subclasses. The argument "
249256"must not be ``NULL``, and the type is not checked:"
250257msgstr ""
258+ "一些用来从 timedelta 对象中提取字段的宏。 参数必须是 :c:data:`PyDateTime_Delta` 包括其子类的实例。 参数必须不为"
259+ " ``NULL``,并且类型不会被检查:"
251260
252261#: ../../c-api/datetime.rst:219
253262msgid "Return the number of days, as an int from -999999999 to 999999999."
@@ -263,16 +272,20 @@ msgstr "返回微秒数,从0到999999的整数。"
263272
264273#: ../../c-api/datetime.rst:238
265274msgid "Macros for the convenience of modules implementing the DB API:"
266- msgstr ""
275+ msgstr "一些便于模块实现 DB API 的宏: "
267276
268277#: ../../c-api/datetime.rst:242
269278msgid ""
270279"Create and return a new :class:`datetime.datetime` object given an argument "
271280"tuple suitable for passing to :meth:`datetime.datetime.fromtimestamp()`."
272281msgstr ""
282+ "创建并返回一个给定元组参数的新 :class:`datetime.datetime` 对象,适合传给 "
283+ ":meth:`datetime.datetime.fromtimestamp()`。"
273284
274285#: ../../c-api/datetime.rst:248
275286msgid ""
276287"Create and return a new :class:`datetime.date` object given an argument "
277288"tuple suitable for passing to :meth:`datetime.date.fromtimestamp()`."
278289msgstr ""
290+ "创建并返回一个给定元组参数的新 :class:`datetime.date` 对象,适合传给 "
291+ ":meth:`datetime.date.fromtimestamp()`。"
0 commit comments