@@ -254,19 +254,26 @@ msgid ""
254254"``datetime`` that uses :class:`datetime.timezone` to record the timezone "
255255"offset."
256256msgstr ""
257+ "如果标头值能被识别为某一种有效的日期形式,此属性将包含一个代表该日期的 :class:`~datetime.datetime` 实例。 "
258+ "如果输入日期的时区被指定为 ``-0000`` (表示为 UTC 但不包含源时区的相关信息),则 :attr:`.datetime` 将为简单型 "
259+ ":class:`~datetime.datetime`。 如果找到了特定的时区时差值 (包括 `+0000`),则 :attr:`.datetime` "
260+ "将包含使用 :class:`datetime.timezone` 来记录时区时差时的感知型 ``datetime``。"
257261
258262#: ../../library/email.headerregistry.rst:160
259263msgid ""
260264"The ``decoded`` value of the header is determined by formatting the "
261265"``datetime`` according to the :rfc:`5322` rules; that is, it is set to::"
262266msgstr ""
267+ "标头的 ``decoded`` 值是由按照 :rfc:`5322` 对 ``datetime`` 进行格式化来确定的;也就是说,它会被设为::"
263268
264269#: ../../library/email.headerregistry.rst:165
265270msgid ""
266271"When creating a ``DateHeader``, *value* may be :class:`~datetime.datetime` "
267272"instance. This means, for example, that the following code is valid and "
268273"does what one would expect::"
269274msgstr ""
275+ "当创建 ``DateHeader`` 时,*value* 可以为 :class:`~datetime.datetime` 实例。 "
276+ "例如这意味着以下代码是有效的并能实现人们预期的行为::"
270277
271278#: ../../library/email.headerregistry.rst:171
272279msgid ""
@@ -275,18 +282,20 @@ msgid ""
275282"more useful is to use the :func:`~email.utils.localtime` function from the "
276283":mod:`~email.utils` module::"
277284msgstr ""
285+ "因为这是个简单型 ``datetime`` 它将被解读为 UTC 时间戳,并且结果值的时区将为 ``-0000``。 使用来自 "
286+ ":mod:`~email.utils` 模块的 :func:`~email.utils.localtime` 函数会更有用::"
278287
279288#: ../../library/email.headerregistry.rst:178
280289msgid ""
281290"This example sets the date header to the current time and date using the "
282291"current timezone offset."
283- msgstr ""
292+ msgstr "这个例子将日期标头设为使用当前时区时差值的当前时间和日期。 "
284293
285294#: ../../library/email.headerregistry.rst:184
286295msgid ""
287296"Address headers are one of the most complex structured header types. The "
288297"``AddressHeader`` class provides a generic interface to any address header."
289- msgstr ""
298+ msgstr "地址标头是最复杂的结构化标头类型之一。 ``AddressHeader`` 类提供了适合任何地址标头的泛用型接口。 "
290299
291300#: ../../library/email.headerregistry.rst:193
292301msgid ""
@@ -295,6 +304,8 @@ msgid ""
295304" in this list as single-address ``Groups`` whose "
296305":attr:`~.Group.display_name` is ``None``."
297306msgstr ""
307+ "编码了在标头值中找到的地址和分组的 :class:`.Group` 对象的元组。 非分组成员的地址在此列表中表示为 "
308+ ":attr:`~.Group.display_name` 为 ``None`` 的单地址 ``Groups``。"
298309
299310#: ../../library/email.headerregistry.rst:201
300311msgid ""
@@ -304,6 +315,8 @@ msgid ""
304315"point where the group occurs in the value (that is, the list of addresses is"
305316" \" flattened\" into a one dimensional list)."
306317msgstr ""
318+ "编码了来自标头值的所有单独地址的 :class:`.Address` 对象的元组。 "
319+ "如果标头值包含任何分组,则来自分组的单个地址将包含在该分组出现在值中的点上列出(也就是说,地址列表会被“展平”为一维列表)。"
307320
308321#: ../../library/email.headerregistry.rst:207
309322msgid ""
0 commit comments