@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.11\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2023-08-25 14:43+0000\n "
14+ "POT-Creation-Date : 2023-09-01 14:43+0000\n "
1515"PO-Revision-Date : 2023-05-24 02:08+0000\n "
1616"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2023\n "
1717"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -35,57 +35,71 @@ msgid ""
3535"puts a pointer to a C structure into a static variable, "
3636":c:data:`!PyDateTimeAPI`, that is used by the following macros."
3737msgstr ""
38+ ":mod:`datetime` 模块提供了各种日期和时间对象。 在使用这些函数之前,必须在你的源代码中包含头文件 :file:`datetime.h` "
39+ "(请注意此文件并未包括在 :file:`Python.h` 中),并且 :c:macro:`!PyDateTime_IMPORT` "
40+ "必须被发起调用,通常是作为模块初始化函数的一部分。 这个宏会将指向特定 C 结构体的指针放入一个静态变量 "
41+ ":c:data:`!PyDateTimeAPI` 中,它将被下列的宏所使用。"
3842
3943#: ../../c-api/datetime.rst:18
4044msgid "This subtype of :c:type:`PyObject` represents a Python date object."
41- msgstr ""
45+ msgstr ":c:type:`PyObject` 的这个子类型表示 Python 日期对象。 "
4246
4347#: ../../c-api/datetime.rst:22
4448msgid ""
4549"This subtype of :c:type:`PyObject` represents a Python datetime object."
46- msgstr ""
50+ msgstr ":c:type:`PyObject` 的这个子类型表示 Python 日期时间对象。 "
4751
4852#: ../../c-api/datetime.rst:26
4953msgid "This subtype of :c:type:`PyObject` represents a Python time object."
50- msgstr ""
54+ msgstr ":c:type:`PyObject` 的这个子类型表示 Python 时间对象。 "
5155
5256#: ../../c-api/datetime.rst:30
5357msgid ""
5458"This subtype of :c:type:`PyObject` represents the difference between two "
5559"datetime values."
56- msgstr ""
60+ msgstr ":c:type:`PyObject` 的这个子类型表示两个日期时间值之间的差值。 "
5761
5862#: ../../c-api/datetime.rst:34
5963msgid ""
6064"This instance of :c:type:`PyTypeObject` represents the Python date type; it "
6165"is the same object as :class:`datetime.date` in the Python layer."
6266msgstr ""
67+ "这个 :c:type:`PyTypeObject` 的实例代表 Python 日期类型;它与 Python 层面的 "
68+ ":class:`datetime.date` 对象相同。"
6369
6470#: ../../c-api/datetime.rst:39
6571msgid ""
6672"This instance of :c:type:`PyTypeObject` represents the Python datetime type;"
6773" it is the same object as :class:`datetime.datetime` in the Python layer."
6874msgstr ""
75+ "这个 :c:type:`PyTypeObject` 的实例代表 Python 日期时间类型;它与 Python 层面的 "
76+ ":class:`datetime.datetime` 对象相同。"
6977
7078#: ../../c-api/datetime.rst:44
7179msgid ""
7280"This instance of :c:type:`PyTypeObject` represents the Python time type; it "
7381"is the same object as :class:`datetime.time` in the Python layer."
7482msgstr ""
83+ "这个 :c:type:`PyTypeObject` 的实例代表 Python 时间类型;它与 Python 层面的 "
84+ ":class:`datetime.time` 对象相同。"
7585
7686#: ../../c-api/datetime.rst:49
7787msgid ""
7888"This instance of :c:type:`PyTypeObject` represents Python type for the "
7989"difference between two datetime values; it is the same object as "
8090":class:`datetime.timedelta` in the Python layer."
8191msgstr ""
92+ "这个 :c:type:`PyTypeObject` 的实例是代表两个日期时间值之间差值的 Python 类型;它与 Python 层面的 "
93+ ":class:`datetime.timedelta` 对象相同。"
8294
8395#: ../../c-api/datetime.rst:55
8496msgid ""
8597"This instance of :c:type:`PyTypeObject` represents the Python time zone info"
8698" type; it is the same object as :class:`datetime.tzinfo` in the Python "
8799"layer."
88100msgstr ""
101+ "这个 :c:type:`PyTypeObject` 的实例代表 Python 时区信息类型;它与 Python 层面的 "
102+ ":class:`datetime.tzinfo` 对象相同。"
89103
90104#: ../../c-api/datetime.rst:59
91105msgid "Macro for access to the UTC singleton:"
@@ -107,6 +121,8 @@ msgid ""
107121" :c:data:`!PyDateTime_DateType`. *ob* must not be ``NULL``. This function "
108122"always succeeds."
109123msgstr ""
124+ "如果 *ob* 为 :c:data:`PyDateTime_DateType` 类型或 :c:data:`!PyDateTime_DateType` "
125+ "的某个子类型则返回真值。 *ob* 不能为 ``NULL``。 此函数总是会成功执行。"
110126
111127#: ../../c-api/datetime.rst:80
112128msgid ""
@@ -122,6 +138,9 @@ msgid ""
122138"subtype of :c:data:`!PyDateTime_DateTimeType`. *ob* must not be ``NULL``. "
123139"This function always succeeds."
124140msgstr ""
141+ "如果 *ob* 为 :c:data:`PyDateTime_DateTimeType` 类型或 "
142+ ":c:data:`!PyDateTime_DateTimeType` 的某个子类型则返回真值。 *ob* 不能为 ``NULL``。 "
143+ "此函数总是会成功执行。"
125144
126145#: ../../c-api/datetime.rst:93
127146msgid ""
@@ -137,6 +156,8 @@ msgid ""
137156" :c:data:`!PyDateTime_TimeType`. *ob* must not be ``NULL``. This function "
138157"always succeeds."
139158msgstr ""
159+ "如果 *ob* 为 :c:data:`PyDateTime_TimeType` 类型或 :c:data:`!PyDateTime_TimeType` "
160+ "的某个子类型则返回真值。 *ob* 不能为 ``NULL``。 此函数总是会成功执行。"
140161
141162#: ../../c-api/datetime.rst:106
142163msgid ""
@@ -152,6 +173,8 @@ msgid ""
152173"of :c:data:`!PyDateTime_DeltaType`. *ob* must not be ``NULL``. This "
153174"function always succeeds."
154175msgstr ""
176+ "如果 *ob* 为 :c:data:`PyDateTime_DeltaType` 类型或 :c:data:`!PyDateTime_DeltaType`"
177+ " 的某个子类型则返回真值。 *ob* 不能为 ``NULL``。 此函数总是会成功执行。"
155178
156179#: ../../c-api/datetime.rst:119
157180msgid ""
@@ -167,6 +190,9 @@ msgid ""
167190"of :c:data:`!PyDateTime_TZInfoType`. *ob* must not be ``NULL``. This "
168191"function always succeeds."
169192msgstr ""
193+ "如果 *ob* 为 :c:data:`PyDateTime_TZInfoType` 类型或 "
194+ ":c:data:`!PyDateTime_TZInfoType` 的某个子类型则返回真值。 *ob* 不能为 ``NULL``。 "
195+ "此函数总是会成功执行。"
170196
171197#: ../../c-api/datetime.rst:132
172198msgid ""
@@ -247,6 +273,8 @@ msgid ""
247273":c:type:`PyDateTime_DateTime`). The argument must not be ``NULL``, and the "
248274"type is not checked:"
249275msgstr ""
276+ "一些用来从日期对象中提取字段的宏。 参数必须是 :c:type:`PyDateTime_Date` 包括其子类 (如 "
277+ ":c:type:`PyDateTime_DateTime`) 的实例。 参数不能为 ``NULL``,且不会检查类型:"
250278
251279#: ../../c-api/datetime.rst:202
252280msgid "Return the year, as a positive int."
@@ -266,6 +294,8 @@ msgid ""
266294"instance of :c:type:`PyDateTime_DateTime`, including subclasses. The "
267295"argument must not be ``NULL``, and the type is not checked:"
268296msgstr ""
297+ "一些用来从日期时间对象中提取字段的宏。 参数必须是 :c:type:`PyDateTime_DateTime` 包括其子类的实例。 参数不能为 "
298+ "``NULL``,并且不会检查类型:"
269299
270300#: ../../c-api/datetime.rst:221 ../../c-api/datetime.rst:259
271301msgid "Return the hour, as an int from 0 through 23."
@@ -297,13 +327,17 @@ msgid ""
297327"instance of :c:type:`PyDateTime_Time`, including subclasses. The argument "
298328"must not be ``NULL``, and the type is not checked:"
299329msgstr ""
330+ "一些用来从时间对象中提取字段的宏。 参数必须是 :c:type:`PyDateTime_Time` 包括其子类的实例。 参数不能为 "
331+ "``NULL``,且不会检查类型:"
300332
301333#: ../../c-api/datetime.rst:291
302334msgid ""
303335"Macros to extract fields from time delta objects. The argument must be an "
304336"instance of :c:type:`PyDateTime_Delta`, including subclasses. The argument "
305337"must not be ``NULL``, and the type is not checked:"
306338msgstr ""
339+ "一些用来从时间差对象中提取字段的宏。 参数必须是 :c:type:`PyDateTime_Delta` 包括其子类的实例。参数不能为 "
340+ "``NULL``,并且不会检查类型:"
307341
308342#: ../../c-api/datetime.rst:297
309343msgid "Return the number of days, as an int from -999999999 to 999999999."
0 commit comments