Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4d2f2b2

Browse files
[po] auto sync
1 parent a0ab829 commit 4d2f2b2

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "93.70%", "updated_at": "2024-02-05T08:55:49Z"}
1+
{"translation": "93.72%", "updated_at": "2024-02-05T09:55:44Z"}

library/datetime.po

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,12 +2229,17 @@ msgid ""
22292229
"or ``!=``. The latter cases return :const:`False` or :const:`True`, "
22302230
"respectively."
22312231
msgstr ""
2232+
"如果比较的双方都为感知型,且具有相同的 :attr:`~.time.tzinfo` 属性,则相同的 :attr:`!tzinfo` "
2233+
"属性会被忽略并对基本时间值进行比较。 如果比较的双方都为感知型且具有不同的 :attr:`!tzinfo` 属性,则双方将首先通过减去它们的 UTC "
2234+
"时差(从 ``self.utcoffset()`` 获取)。 为了防止将混合类型比较回退为基于对象地址的默认比较,当 :class:`.time` "
2235+
"对象与不同类型的对象比较时,将会引发 :exc:`TypeError`,除非比较运算符是 ``==`` 或 ``!=``。 在后两种情况下将分别返回 "
2236+
":const:`False` 或 :const:`True`。"
22322237

22332238
#: ../../library/datetime.rst:1779
22342239
msgid ""
22352240
"Equality comparisons between aware and naive :class:`.time` instances don't "
22362241
"raise :exc:`TypeError`."
2237-
msgstr ""
2242+
msgstr "感知型和简单型 :class:`.time` 实例之间的相等性比较不会引发 :exc:`TypeError`。"
22382243

22392244
#: ../../library/datetime.rst:1783
22402245
msgid ""
@@ -2417,6 +2422,9 @@ msgid ""
24172422
"represent timezones with fixed offset from UTC such as UTC itself or North "
24182423
"American EST and EDT."
24192424
msgstr ""
2425+
"你需要派生一个实体子类,并且(至少)提供你使用 :class:`.datetime` 方法所需要的标准 :class:`tzinfo` 方法的实现。 "
2426+
":mod:`!datetime` 模块提供了 :class:`timezone`,这是 :class:`tzinfo` 的一个简单实体子类,它能以与 "
2427+
"UTC 的固定差值来表示不同的时区,例如 UTC 本身或北美的 EST 和 EDT。"
24202428

24212429
#: ../../library/datetime.rst:1992
24222430
msgid ""
@@ -2434,6 +2442,9 @@ msgid ""
24342442
"methods. Exactly which methods are needed depends on the uses made of aware "
24352443
":mod:`!datetime` objects. If in doubt, simply implement all of them."
24362444
msgstr ""
2445+
"一个 :class:`tzinfo` 的实体子类可能需要实现以下方法。 具体需要实现的方法取决于感知型 :mod:`!datetime` "
2446+
"对象如何使用它。 如果有疑问,可以简单地全部实现它们。objects. If in doubt, simply implement all of "
2447+
"them."
24372448

24382449
#: ../../library/datetime.rst:2005
24392450
msgid ""
@@ -3535,10 +3546,12 @@ msgid ""
35353546
":meth:`~.datetime.tzname` returns ``None``; otherwise ``%Z`` is replaced by "
35363547
"the returned value, which must be a string."
35373548
msgstr ""
3549+
"在 :meth:`~.datetime.strftime` 中,如果 :meth:`~.datetime.tzname` 返回 ``None`` 则 "
3550+
"``%Z`` 会被替换为一个空字符串;在其他情况下 ``%Z`` 会被替换为该返回值,它必须为一个字符串。"
35383551

35393552
#: ../../library/datetime.rst:2613
35403553
msgid ":meth:`~.datetime.strptime` only accepts certain values for ``%Z``:"
3541-
msgstr ""
3554+
msgstr ":meth:`~.datetime.strptime` 仅接受特定的 ``%Z`` 值:"
35423555

35433556
#: ../../library/datetime.rst:2615
35443557
msgid "any value in ``time.tzname`` for your machine's locale"
@@ -3563,13 +3576,17 @@ msgid ""
35633576
"method, an aware :class:`.datetime` object will be produced. The ``tzinfo`` "
35643577
"of the result will be set to a :class:`timezone` instance."
35653578
msgstr ""
3579+
"当提供 ``%z`` 指令给 :meth:`~.datetime.strptime` 方法时,将产生一个感知型 :class:`.datetime` "
3580+
"对象。 结果的 ``tzinfo`` 将被设为一个 :class:`timezone` 实例。"
35663581

35673582
#: ../../library/datetime.rst:2628
35683583
msgid ""
35693584
"When used with the :meth:`~.datetime.strptime` method, ``%U`` and ``%W`` are"
35703585
" only used in calculations when the day of the week and the calendar year "
35713586
"(``%Y``) are specified."
35723587
msgstr ""
3588+
"当与 :meth:`~.datetime.strptime` 方法一起使用时,``%U`` 和 ``%W`` 仅用于指定了星期值和日历年份 "
3589+
"(``%Y``) 的计算。"
35733590

35743591
#: ../../library/datetime.rst:2633
35753592
msgid ""
@@ -3578,6 +3595,8 @@ msgid ""
35783595
":meth:`~.datetime.strptime` format string. Also note that ``%G`` and ``%Y`` "
35793596
"are not interchangeable."
35803597
msgstr ""
3598+
"类似于 ``%U`` 和 ``%W``,``%V`` 仅用于在 :meth:`~.datetime.strptime` 格式字符串中指定了星期值和 "
3599+
"ISO 年份 (``%G``) 的计算。 还要注意 ``%G`` 和 ``%Y`` 是不可互换的。"
35813600

35823601
#: ../../library/datetime.rst:2639
35833602
msgid ""
@@ -3586,6 +3605,9 @@ msgid ""
35863605
"``%j``, ``%U``, ``%W``, and ``%V``. Format ``%y`` does require a leading "
35873606
"zero."
35883607
msgstr ""
3608+
"当与 :meth:`~.datetime.strptime` 方法一起使用时,前导的零在格式 ``%d``, ``%m``, ``%H``, "
3609+
"``%I``, ``%M``, ``%S``, ``%j``, ``%U``, ``%W`` 和 ``%V`` 中是可选的。 格式 ``%y`` "
3610+
"则要求有前导的零。"
35893611

35903612
#: ../../library/datetime.rst:2644
35913613
msgid "Footnotes"

0 commit comments

Comments
 (0)