@@ -2126,22 +2126,24 @@ msgstr ""
21262126
21272127#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1513
21282128msgid "Examples of Usage: :class:`.datetime`"
2129- msgstr ""
2129+ msgstr "用法示例: :class:`.datetime` "
21302130
21312131#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1515
21322132msgid "Examples of working with :class:`~datetime.datetime` objects:"
2133- msgstr ""
2133+ msgstr "使用 :class:`~datetime.datetime` 对象的例子: "
21342134
21352135#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1568
21362136msgid ""
21372137"The example below defines a :class:`tzinfo` subclass capturing time zone "
21382138"information for Kabul, Afghanistan, which used +4 UTC until 1945 and then "
21392139"+4:30 UTC thereafter::"
21402140msgstr ""
2141+ "以下示例定义了一个 :class:`tzinfo` 子类,它捕获 Kabul, Afghanistan 时区的信息,该时区使用 +4 UTC 直到 "
2142+ "1945 年,之后则使用 +4:30 UTC::"
21412143
21422144#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1615
21432145msgid "Usage of ``KabulTz`` from above::"
2144- msgstr ""
2146+ msgstr "上述 ``KabulTz`` 的用法:: "
21452147
21462148#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1641
21472149msgid ":class:`.time` Objects"
@@ -2151,20 +2153,24 @@ msgstr ":class:`.time` 对象"
21512153msgid ""
21522154"A :class:`time` object represents a (local) time of day, independent of any "
21532155"particular day, and subject to adjustment via a :class:`tzinfo` object."
2154- msgstr ""
2156+ msgstr "一个 :class:`time` 对象代表某日的(本地)时间,它独立于任何特定日期,并可通过 :class:`tzinfo` 对象来调整。 "
21552157
21562158#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1648
21572159msgid ""
21582160"All arguments are optional. *tzinfo* may be ``None``, or an instance of a "
21592161":class:`tzinfo` subclass. The remaining arguments must be integers in the "
21602162"following ranges:"
21612163msgstr ""
2164+ "所有参数都是可选的。 *tzinfo* 可以是 ``None``,或者是一个 :class:`tzinfo` 子类的实例。 "
2165+ "其余的参数必须是在下面范围内的整数:"
21622166
21632167#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1658
21642168msgid ""
21652169"If an argument outside those ranges is given, :exc:`ValueError` is raised. "
21662170"All default to ``0`` except *tzinfo*, which defaults to :const:`None`."
21672171msgstr ""
2172+ "如果给出一个此范围以外的参数,则会引发 :exc:`ValueError`。 所有参数值默认为 ``0``,只有 *tzinfo* 默认为 "
2173+ ":const:`None`。"
21682174
21692175#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1666
21702176msgid "The earliest representable :class:`.time`, ``time(0, 0, 0, 0)``."
@@ -2197,6 +2203,9 @@ msgid ""
21972203"is raised if an order comparison is attempted. For equality comparisons, "
21982204"naive instances are never equal to aware instances."
21992205msgstr ""
2206+ ":class:`.time` 对象支持 :class:`.time` 与 :class:`.time` 的比较,当 *a* 时间在 *b* "
2207+ "之前时,则认为 *a* 小于 *b*。 如果比较的一方是简单型而另一方是感知型,则如果尝试进行顺序比较将引发 :exc:`TypeError`。 "
2208+ "对于相等比较,简单型实例将永远不等于感知型实例。"
22002209
22012210#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1725
22022211msgid ""
@@ -2211,18 +2220,24 @@ msgid ""
22112220" or ``!=``. The latter cases return :const:`False` or :const:`True`, "
22122221"respectively."
22132222msgstr ""
2223+ "如果两个比较方都是感知型,且具有相同的 :attr:`~time.tzinfo` 属性,相同的 :attr:`~time.tzinfo` "
2224+ "属性会被忽略并对基本时间值进行比较。 如果两个比较方都是感知型且具有不同的 :attr:`~time.tzinfo` "
2225+ "属性,两个比较方将首先通过减去它们的 UTC 时差(从 ``self.utcoffset()`` 获取)来进行调整。 "
2226+ "为了防止将混合类型比较回退为基于对象地址的默认比较,当 :class:`.time` 对象与不同类型的对象比较时,将会引发 "
2227+ ":exc:`TypeError`,除非比较运算符是 ``==`` 或 ``!=``。 在后两种情况下将分别返回 :const:`False` 或 "
2228+ ":const:`True`。"
22142229
22152230#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1735
22162231msgid ""
22172232"Equality comparisons between aware and naive :class:`~datetime.time` "
22182233"instances don't raise :exc:`TypeError`."
2219- msgstr ""
2234+ msgstr "感知型和简单型 :class:`~datetime.time` 实例之间的相等比较不会引发 :exc:`TypeError`。 "
22202235
22212236#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1739
22222237msgid ""
22232238"In Boolean contexts, a :class:`.time` object is always considered to be "
22242239"true."
2225- msgstr ""
2240+ msgstr "在布尔运算时,:class:`.time` 对象总是被视为真值。 "
22262241
22272242#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1741
22282243msgid ""
0 commit comments