File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 93.72%" , "updated_at" : " 2024-02-05T09 :55:44Z " }
1+ {"translation" : " 93.72%" , "updated_at" : " 2024-02-05T14 :55:39Z " }
Original file line number Diff line number Diff line change @@ -2502,6 +2502,12 @@ msgid ""
25022502":meth:`tzinfo.fromutc` calls :meth:`dst` to account for DST changes when "
25032503"crossing time zones."
25042504msgstr ""
2505+ "如果 DST 未启用则返回 ``timedelta(0)``。 如果 DST 已启用,则将差值作为一个 :class:`timedelta` "
2506+ "对象返回(请参阅 :meth:`utcoffset` 了解详情)。 请注意 DST 差值如果可用,就会直接被加入 :meth:`utcoffset` "
2507+ "所返回的 UTC 时差,因此无需额外查询 :meth:`dst`,除非你希望单独获取 DST 信息。 "
2508+ "例如,:meth:`datetime.timetuple` 会调用其 :attr:`~.datetime.tzinfo` 属性的 :meth:`dst`"
2509+ " 方法来确定应该如何设置 :attr:`~time.struct_time.tm_isdst` 旗标,而 :meth:`tzinfo.fromutc` "
2510+ "会调用 :meth:`dst` 来在跨越时区时处理 DST 的改变。"
25052511
25062512#: ../../library/datetime.rst:2045
25072513msgid ""
You can’t perform that action at this time.
0 commit comments