@@ -874,6 +874,8 @@ msgid ""
874874"values by whichever keyword arguments are specified. For example, if ``d =="
875875" date(2002, 12, 31)``, then ``d.replace(day=26) == date(2002, 12, 26)``."
876876msgstr ""
877+ "返回一个具有同样值的日期,除非通过任何关键字参数给出了某些形参的新值。 例如,如果 ``d == date(2002, 12, 31)``,则 "
878+ "``d.replace(day=26) == date(2002, 12, 26)``。"
877879
878880#: ../../library/datetime.rst:555
879881msgid ""
@@ -884,13 +886,20 @@ msgid ""
884886"d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the day number "
885887"within the current year starting with ``1`` for January 1st."
886888msgstr ""
889+ "返回一个 :class:`time.struct_time`,即与 :func:`time.localtime` 的返回类型相同。 hours, "
890+ "minutes 和 seconds 值为 0, 且 DST 标志值为 -1。 ``d.timetuple()`` 等价于 "
891+ "``time.struct_time((d.year, d.month, d.day, 0, 0, 0, d.weekday(), yday, "
892+ "-1))``,其中 ``yday = d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` "
893+ "是日期在当前年份中的序号,起始序号 ``1`` 表示 1 月 1 日。"
887894
888895#: ../../library/datetime.rst:565
889896msgid ""
890897"Return the proleptic Gregorian ordinal of the date, where January 1 of year "
891898"1 has ordinal 1. For any :class:`date` object *d*, "
892899"``date.fromordinal(d.toordinal()) == d``."
893900msgstr ""
901+ "返回日期的预期格列高利历序号,其中公元 1 年 1 月 1 日的序号为 1。 对于任意 :class:`date` 对象 "
902+ "*d*,``date.fromordinal(d.toordinal()) == d``。"
894903
895904#: ../../library/datetime.rst:572
896905msgid ""
0 commit comments