@@ -2806,12 +2806,15 @@ msgid ""
28062806"in the format ``UTC±HH:MM``, where ± is the sign of ``offset``, HH and MM "
28072807"are two digits of ``offset.hours`` and ``offset.minutes`` respectively."
28082808msgstr ""
2809+ "如果没有在构造器中提供 *name*,则 ``tzname(dt)`` 所返回的名称将根据 ``offset`` 值按以下规则生成。 如果 "
2810+ "*offset* 为 ``timedelta(0)``,则名称为“UTC”,否则为字符串 ``UTC±HH:MM``,其中 ± 为 ``offset``"
2811+ " 的正负符号,HH 和 MM 分别为表示 ``offset.hours`` 和 ``offset.minutes`` 的两个数码。"
28092812
28102813#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2241
28112814msgid ""
28122815"Name generated from ``offset=timedelta(0)`` is now plain `'UTC'`, not "
28132816"``'UTC+00:00'``."
2814- msgstr ""
2817+ msgstr "由 ``offset=timedelta(0)`` 生成的名称现在为简单的 `'UTC'` 而不再是 ``'UTC+00:00'``。 "
28152818
28162819#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2248
28172820msgid "Always returns ``None``."
@@ -2822,6 +2825,8 @@ msgid ""
28222825"Return ``dt + offset``. The *dt* argument must be an aware "
28232826":class:`.datetime` instance, with ``tzinfo`` set to ``self``."
28242827msgstr ""
2828+ "返回 ``dt + offset``。 *dt* 参数必须为一个感知型 :class:`.datetime` 实例,其中 ``tzinfo`` 值设为 "
2829+ "``self``。"
28252830
28262831#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2259
28272832msgid "The UTC timezone, ``timezone(timedelta(0))``."
@@ -2837,19 +2842,23 @@ msgid ""
28372842"``strftime(format)`` method, to create a string representing the time under "
28382843"the control of an explicit format string."
28392844msgstr ""
2845+ ":class:`date`, :class:`.datetime` 和 :class:`.time` 对象都支持 "
2846+ "``strftime(format)`` 方法,可用来创建由一个显式格式字符串所控制的表示时间的字符串。"
28402847
28412848#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2274
28422849msgid ""
28432850"Conversely, the :meth:`datetime.strptime` class method creates a "
28442851":class:`.datetime` object from a string representing a date and time and a "
28452852"corresponding format string."
28462853msgstr ""
2854+ "相反地,:meth:`datetime.strptime` 类会根据表示日期和时间的字符串和相应的格式字符串来创建一个 "
2855+ ":class:`.datetime` 对象。"
28472856
28482857#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2278
28492858msgid ""
28502859"The table below provides a high-level comparison of :meth:`strftime` versus "
28512860":meth:`strptime`:"
2852- msgstr ""
2861+ msgstr "下表提供了 :meth:`strftime` 与 :meth:`strptime` 的高层级比较: "
28532862
28542863#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2282
28552864msgid "``strftime``"
@@ -2916,7 +2925,7 @@ msgstr ":meth:`strftime` 和 :meth:`strptime` Format Codes"
29162925msgid ""
29172926"The following is a list of all the format codes that the 1989 C standard "
29182927"requires, and these work on all platforms with a standard C implementation."
2919- msgstr ""
2928+ msgstr "以下列表显示了 1989 版 C 标准所要求的全部格式代码,它们在带有标准 C 实现的所有平台上均可用。 "
29202929
29212930#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2301
29222931#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2404
@@ -3353,6 +3362,9 @@ msgid ""
33533362":meth:`strptime` with incomplete or ambiguous ISO 8601 directives will raise"
33543363" a :exc:`ValueError`."
33553364msgstr ""
3365+ "这些代码可能不是在所有平台上都可与 :meth:`strftime` 方法配合使用。 ISO 8601 年份和 ISO 8601 "
3366+ "星期指令并不能与上面的年份和星期序号指令相互替代。 调用 :meth:`strptime` 时传入不完整或有歧义的 ISO 8601 指令将引发 "
3367+ ":exc:`ValueError`。"
33563368
33573369#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2426
33583370msgid ""
@@ -3362,6 +3374,8 @@ msgid ""
33623374"supported on your platform, consult the :manpage:`strftime(3)` "
33633375"documentation."
33643376msgstr ""
3377+ "对完整格式代码集的支持在不同平台上有所差异,因为 Python 要调用所在平台的 C 库的 :func:`strftime` "
3378+ "函数,而不同平台的差异是很常见的。 要查看你所用平台所支持的完整格式代码集,请参阅 :manpage:`strftime(3)` 文档。"
33653379
33663380#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2431
33673381msgid "``%G``, ``%u`` and ``%V`` were added."
@@ -3377,6 +3391,8 @@ msgid ""
33773391"``time.strftime(fmt, d.timetuple())`` although not all objects support a "
33783392":meth:`timetuple` method."
33793393msgstr ""
3394+ "总体而言,``d.strftime(fmt)`` 类似于 :mod:`time` 模块的 ``time.strftime(fmt, "
3395+ "d.timetuple())``,但是并非所有对象都支持 :meth:`timetuple` 方法。"
33803396
33813397#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2441
33823398msgid ""
@@ -3389,7 +3405,7 @@ msgstr ""
33893405
33903406#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2445
33913407msgid "Using ``datetime.strptime(date_string, format)`` is equivalent to::"
3392- msgstr ""
3408+ msgstr "使用 ``datetime.strptime(date_string, format)`` 等价于:: "
33933409
33943410#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2449
33953411msgid ""
0 commit comments