22222323# dogn he <[email protected] >, 20192424# ppcfish <[email protected] >, 201925- # Freesand Leo <[email protected] >, 2019 25+ # Freesand Leo <[email protected] >, 2020 2626#
2727#, fuzzy
2828msgid ""
@@ -31,7 +31,7 @@ msgstr ""
3131"Report-Msgid-Bugs-To : \n "
3232"POT-Creation-Date : 2019-12-24 12:15+0000\n "
3333"PO-Revision-Date : 2017-02-16 23:06+0000\n "
34- "
Last-Translator :
Freesand Leo <[email protected] >, 2019 \n "
34+ "
Last-Translator :
Freesand Leo <[email protected] >, 2020 \n "
3535"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
3636"MIME-Version : 1.0\n "
3737"Content-Type : text/plain; charset=UTF-8\n "
@@ -944,6 +944,10 @@ msgid ""
944944":exc:`OverflowError` is raised if ``date2.year`` would be smaller than "
945945":const:`MINYEAR` or larger than :const:`MAXYEAR`."
946946msgstr ""
947+ "如果 ``timedelta.days > 0`` 则 *date2* 将在时间线上前进,如果 ``timedelta.days < 0`` 则将后退。"
948+ " 操作完成后 ``date2 - date1 == timedelta.days``。 ``timedelta.seconds`` 和 "
949+ "``timedelta.microseconds`` 会被忽略。 如果 ``date2.year`` 将小于 :const:`MINYEAR` 或大于 "
950+ ":const:`MAXYEAR` 则会引发 :exc:`OverflowError`。"
947951
948952#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:602
949953msgid "``timedelta.seconds`` and ``timedelta.microseconds`` are ignored."
@@ -954,6 +958,8 @@ msgid ""
954958"This is exact, and cannot overflow. timedelta.seconds and "
955959"timedelta.microseconds are 0, and date2 + timedelta == date1 after."
956960msgstr ""
961+ "此值完全精确且不会溢出。 操作完成后 timedelta.seconds 和 timedelta.microseconds 均为 0,并且 date2 "
962+ "+ timedelta == date1。"
957963
958964#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:609
959965msgid ""
@@ -967,17 +973,23 @@ msgid ""
967973" is ``==`` or ``!=``. The latter cases return :const:`False` or "
968974":const:`True`, respectively."
969975msgstr ""
976+ "换句话说,当且仅当 ``date1.toordinal() < date2.toordinal()`` 时 ``date1 < date2``。 "
977+ "日期比较会引发 :exc:`TypeError`,如果比较目标不为 :class:`date` 对象的话。 不过也可能会返回 "
978+ "``NotImplemented``,如果比较目标具有 :meth:`timetuple` 属性的话。 "
979+ "这个钩子给予其他日期对象类型实现混合类型比较的机会。 否则,当 :class:`date` 对象与不同类型的对象比较时将会引发 "
980+ ":exc:`TypeError`,除非是 ``==`` 或 ``!=`` 比较。 后两种情况将分别返回 :const:`False` 或 "
981+ ":const:`True`。"
970982
971983#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:619
972984msgid ""
973985"In Boolean contexts, all :class:`date` objects are considered to be true."
974- msgstr ""
986+ msgstr "在布尔运算中,所有 :class:`date` 对象都会被视为真值。 "
975987
976988#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:625
977989msgid ""
978990"Return a date with the same value, except for those parameters given new "
979991"values by whichever keyword arguments are specified."
980- msgstr ""
992+ msgstr "返回一个具有同样值的日期,除非通过任何关键字参数给出了某些形参的新值。 "
981993
982994#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:628
983995#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1821
@@ -989,29 +1001,33 @@ msgstr "示例::"
9891001msgid ""
9901002"Return a :class:`time.struct_time` such as returned by "
9911003":func:`time.localtime`."
992- msgstr ""
1004+ msgstr "返回一个 :class:`time.struct_time`,即 :func:`time.localtime` 所返回的类型。 "
9931005
9941006#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:640
9951007msgid "The hours, minutes and seconds are 0, and the DST flag is -1."
996- msgstr ""
1008+ msgstr "hours, minutes 和 seconds 值均为 0,且 DST 旗标值为 -1。 "
9971009
9981010#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:642
9991011#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:1305
10001012msgid "``d.timetuple()`` is equivalent to::"
1001- msgstr ""
1013+ msgstr "``d.timetuple()`` 等价于:: "
10021014
10031015#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:646
10041016msgid ""
10051017"where ``yday = d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the "
10061018"day number within the current year starting with ``1`` for January 1st."
10071019msgstr ""
1020+ "其中 ``yday = d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` "
1021+ "是当前年份中的日期序号,1 月 1 日的序号为 ``1``。"
10081022
10091023#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:652
10101024msgid ""
10111025"Return the proleptic Gregorian ordinal of the date, where January 1 of year "
10121026"1 has ordinal 1. For any :class:`date` object *d*, "
10131027"``date.fromordinal(d.toordinal()) == d``."
10141028msgstr ""
1029+ "返回日期的预期格列高利历序号,其中公元 1 年 1 月 1 日的序号为 1。 对于任意 :class:`date` 对象 "
1030+ "*d*,``date.fromordinal(d.toordinal()) == d``。"
10151031
10161032#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:659
10171033msgid ""
@@ -1038,7 +1054,7 @@ msgstr "返回一个三元元组,(ISO year, ISO week number, ISO weekday) 。"
10381054#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:675
10391055msgid ""
10401056"The ISO calendar is a widely used variant of the Gregorian calendar. [#]_"
1041- msgstr ""
1057+ msgstr "ISO 历法是一种被广泛使用的格列高利历。 [#]_ "
10421058
10431059#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:677
10441060msgid ""
0 commit comments