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

Skip to content

Commit a0ab829

Browse files
[po] auto sync
1 parent acc688f commit a0ab829

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

.stat.json

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

library/datetime.po

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3346,6 +3346,9 @@ msgid ""
33463346
"above. Calling :meth:`~.datetime.strptime` with incomplete or ambiguous ISO "
33473347
"8601 directives will raise a :exc:`ValueError`."
33483348
msgstr ""
3349+
"这些代码可能不是在所有平台上都可与 :meth:`~.datetime.strftime` 方法配合使用。 ISO 8601 年份和 ISO 8601 "
3350+
"星期指令并不能与上面的年份和星期序号指令相互替代。 调用 :meth:`~.datetime.strptime` 时传入不完整或有歧义的 ISO "
3351+
"8601 指令将引发 :exc:`ValueError`。"
33493352

33503353
#: ../../library/datetime.rst:2496
33513354
msgid ""
@@ -3356,6 +3359,9 @@ msgid ""
33563359
"documentation. There are also differences between platforms in handling of "
33573360
"unsupported format specifiers."
33583361
msgstr ""
3362+
"对完整格式代码集的支持在不同平台上有所差异,因为 Python 要调用所在平台的 C 库的 :c:func:`strftime` "
3363+
"函数,而不同平台的差异是很常见的。 要查看你所用平台所支持的完整格式代码集,请参阅 :manpage:`strftime(3)` 文档。 "
3364+
"不同的平台在处理不支持的格式说明符方面也有差异。"
33593365

33603366
#: ../../library/datetime.rst:2502
33613367
msgid "``%G``, ``%u`` and ``%V`` were added."
@@ -3375,13 +3381,17 @@ msgid ""
33753381
"``time.strftime(fmt, d.timetuple())`` although not all objects support a "
33763382
":meth:`~date.timetuple` method."
33773383
msgstr ""
3384+
"总体而言,``d.strftime(fmt)`` 类似于 :mod:`time` 模块的 ``time.strftime(fmt, "
3385+
"d.timetuple())`` 但是并非所有对象都支持 :meth:`~date.timetuple` 方法。"
33783386

33793387
#: ../../library/datetime.rst:2515
33803388
msgid ""
33813389
"For the :meth:`.datetime.strptime` class method, the default value is "
33823390
"``1900-01-01T00:00:00.000``: any components not specified in the format "
33833391
"string will be pulled from the default value. [#]_"
33843392
msgstr ""
3393+
"对于 :meth:`.datetime.strptime` 类方法,默认值为 ``1900-01-01T00:00:00.000``: "
3394+
"任何未在格式字符串中指定的部分都将从默认值中获取。 [#]_"
33853395

33863396
#: ../../library/datetime.rst:2519
33873397
msgid "Using ``datetime.strptime(date_string, format)`` is equivalent to::"
@@ -3403,6 +3413,8 @@ msgid ""
34033413
" anyway, ``1900`` is substituted for the year, and ``1`` for the month and "
34043414
"day."
34053415
msgstr ""
3416+
"对于 :class:`.time` 对象,年、月、日的格式代码不应被使用,因为 :class:`!time` 对象没有这些值。 "
3417+
"如果它们被使用,则年份将被替换为 ``1900``,而月和日将被替换为 ``1``。"
34063418

34073419
#: ../../library/datetime.rst:2531
34083420
msgid ""
@@ -3440,31 +3452,35 @@ msgid ""
34403452
"The :meth:`~.datetime.strptime` method can parse years in the full [1, 9999]"
34413453
" range, but years < 1000 must be zero-filled to 4-digit width."
34423454
msgstr ""
3455+
":meth:`~.datetime.strptime` 方法能够解析整个 [1, 9999] 范围内的年份,但 < 1000 的年份必须加零填充为 4 "
3456+
"位数字宽度。"
34433457

34443458
#: ../../library/datetime.rst:2553
34453459
msgid ""
34463460
"In previous versions, :meth:`~.datetime.strftime` method was restricted to "
34473461
"years >= 1900."
3448-
msgstr ""
3462+
msgstr "在之前的版本中,:meth:`~.datetime.strftime` 方法只限用于 >= 1900 的年份。"
34493463

34503464
#: ../../library/datetime.rst:2557
34513465
msgid ""
34523466
"In version 3.2, :meth:`~.datetime.strftime` method was restricted to years "
34533467
">= 1000."
3454-
msgstr ""
3468+
msgstr "在 3.2 版中,:meth:`~.datetime.strftime` 方法只限用于 >= 1000 的年份。"
34553469

34563470
#: ../../library/datetime.rst:2562
34573471
msgid ""
34583472
"When used with the :meth:`~.datetime.strptime` method, the ``%p`` directive "
34593473
"only affects the output hour field if the ``%I`` directive is used to parse "
34603474
"the hour."
34613475
msgstr ""
3476+
"当与 :meth:`~.datetime.strptime` 方法一起使用时,如果使用 ``%I`` 指令来解析时,则 ``%p`` "
3477+
"指令只会影响输出时字段。"
34623478

34633479
#: ../../library/datetime.rst:2566
34643480
msgid ""
34653481
"Unlike the :mod:`time` module, the :mod:`!datetime` module does not support "
34663482
"leap seconds."
3467-
msgstr ""
3483+
msgstr "与 :mod:`time` 模块不同的是,:mod:`!datetime` 模块不支持闰秒。"
34683484

34693485
#: ../../library/datetime.rst:2570
34703486
msgid ""

0 commit comments

Comments
 (0)