Skip to content

Commit

Permalink
sync with cpython 9d996b52
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and mattwang44 committed Jul 18, 2024
1 parent 7313bb3 commit 7cbdc0e
Showing 1 changed file with 33 additions and 29 deletions.
62 changes: 33 additions & 29 deletions library/datetime.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-13 00:03+0000\n"
"POT-Creation-Date: 2024-07-17 00:03+0000\n"
"PO-Revision-Date: 2023-08-07 10:20+0800\n"
"Last-Translator: Griiid <gridwing@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -92,7 +92,7 @@ msgstr ""
#: ../../library/datetime.rst:50
msgid ""
"Date and time objects may be categorized as \"aware\" or \"naive\" depending "
"on whether or not they include timezone information."
"on whether or not they include time zone information."
msgstr ""

#: ../../library/datetime.rst:53
Expand All @@ -109,7 +109,7 @@ msgid ""
"A **naive** object does not contain enough information to unambiguously "
"locate itself relative to other date/time objects. Whether a naive object "
"represents Coordinated Universal Time (UTC), local time, or time in some "
"other timezone is purely up to the program, just like it is up to the "
"other time zone is purely up to the program, just like it is up to the "
"program whether a particular number represents metres, miles, or mass. Naive "
"objects are easy to understand and to work with, at the cost of ignoring "
"some aspects of reality."
Expand All @@ -128,9 +128,9 @@ msgstr ""
#: ../../library/datetime.rst:72
msgid ""
"Only one concrete :class:`tzinfo` class, the :class:`timezone` class, is "
"supplied by the :mod:`!datetime` module. The :class:`timezone` class can "
"represent simple timezones with fixed offsets from UTC, such as UTC itself "
"or North American EST and EDT timezones. Supporting timezones at deeper "
"supplied by the :mod:`!datetime` module. The :class:`!timezone` class can "
"represent simple time zones with fixed offsets from UTC, such as UTC itself "
"or North American EST and EDT time zones. Supporting time zones at deeper "
"levels of detail is up to the application. The rules for time adjustment "
"across the world are more political than rational, change frequently, and "
"there is no standard suitable for every application aside from UTC."
Expand All @@ -157,7 +157,7 @@ msgid ""
msgstr ""

#: ../../library/datetime.rst:98
msgid "Alias for the UTC timezone singleton :attr:`datetime.timezone.utc`."
msgid "Alias for the UTC time zone singleton :attr:`datetime.timezone.utc`."
msgstr ""

#: ../../library/datetime.rst:103
Expand Down Expand Up @@ -1131,8 +1131,9 @@ msgid "Added the *fold* parameter."
msgstr "新增 *fold* 參數。"

#: ../../library/datetime.rst:853
msgid "Return the current local datetime, with :attr:`.tzinfo` ``None``."
msgstr ""
#, fuzzy
msgid "Return the current local date and time, with :attr:`.tzinfo` ``None``."
msgstr "回傳目前的本地日期。"

#: ../../library/datetime.rst:855
msgid "Equivalent to::"
Expand Down Expand Up @@ -1356,7 +1357,7 @@ msgstr ""

#: ../../library/datetime.rst:1054
msgid ""
"If *format* does not contain microseconds or timezone information, this is "
"If *format* does not contain microseconds or time zone information, this is "
"equivalent to::"
msgstr ""

Expand Down Expand Up @@ -1597,13 +1598,13 @@ msgstr ""
msgid ""
"If provided, *tz* must be an instance of a :class:`tzinfo` subclass, and "
"its :meth:`utcoffset` and :meth:`dst` methods must not return ``None``. If "
"*self* is naive, it is presumed to represent time in the system timezone."
"*self* is naive, it is presumed to represent time in the system time zone."
msgstr ""

#: ../../library/datetime.rst:1272
msgid ""
"If called without arguments (or with ``tz=None``) the system local timezone "
"is assumed for the target timezone. The ``.tzinfo`` attribute of the "
"If called without arguments (or with ``tz=None``) the system local time zone "
"is assumed for the target time zone. The ``.tzinfo`` attribute of the "
"converted datetime instance will be set to an instance of :class:`timezone` "
"with the zone name and offset obtained from the OS."
msgstr ""
Expand All @@ -1612,17 +1613,18 @@ msgstr ""
msgid ""
"If ``self.tzinfo`` is *tz*, ``self.astimezone(tz)`` is equal to *self*: no "
"adjustment of date or time data is performed. Else the result is local time "
"in the timezone *tz*, representing the same UTC time as *self*: after "
"in the time zone *tz*, representing the same UTC time as *self*: after "
"``astz = dt.astimezone(tz)``, ``astz - astz.utcoffset()`` will have the same "
"date and time data as ``dt - dt.utcoffset()``."
msgstr ""

#: ../../library/datetime.rst:1283
msgid ""
"If you merely want to attach a time zone object *tz* to a datetime *dt* "
"without adjustment of date and time data, use ``dt.replace(tzinfo=tz)``. If "
"you merely want to remove the time zone object from an aware datetime *dt* "
"without conversion of date and time data, use ``dt.replace(tzinfo=None)``."
"If you merely want to attach a :class:`timezone` object *tz* to a datetime "
"*dt* without adjustment of date and time data, use ``dt."
"replace(tzinfo=tz)``. If you merely want to remove the :class:`!timezone` "
"object from an aware datetime *dt* without conversion of date and time data, "
"use ``dt.replace(tzinfo=None)``."
msgstr ""

#: ../../library/datetime.rst:1288
Expand Down Expand Up @@ -1750,7 +1752,7 @@ msgstr ""
msgid ""
"There is no method to obtain the POSIX timestamp directly from a naive :"
"class:`.datetime` instance representing UTC time. If your application uses "
"this convention and your system timezone is not set to UTC, you can obtain "
"this convention and your system time zone is not set to UTC, you can obtain "
"the POSIX timestamp by supplying ``tzinfo=timezone.utc``::"
msgstr ""

Expand Down Expand Up @@ -2150,7 +2152,7 @@ msgid ""
"implementations of the standard :class:`tzinfo` methods needed by the :class:"
"`.datetime` methods you use. The :mod:`!datetime` module provides :class:"
"`timezone`, a simple concrete subclass of :class:`tzinfo` which can "
"represent timezones with fixed offset from UTC such as UTC itself or North "
"represent time zones with fixed offset from UTC such as UTC itself or North "
"American EST and EDT."
msgstr ""

Expand Down Expand Up @@ -2300,8 +2302,8 @@ msgid ""
"datetime` method, ``dt.tzinfo`` is the same object as *self*. :class:"
"`tzinfo` methods can rely on this, unless user code calls :class:`tzinfo` "
"methods directly. The intent is that the :class:`tzinfo` methods interpret "
"*dt* as being in local time, and not need worry about objects in other "
"timezones."
"*dt* as being in local time, and not need worry about objects in other time "
"zones."
msgstr ""

#: ../../library/datetime.rst:2104
Expand Down Expand Up @@ -2403,17 +2405,18 @@ msgstr ":mod:`zoneinfo`"
msgid ""
"The :mod:`!datetime` module has a basic :class:`timezone` class (for "
"handling arbitrary fixed offsets from UTC) and its :attr:`timezone.utc` "
"attribute (a UTC timezone instance)."
"attribute (a UTC :class:`!timezone` instance)."
msgstr ""

#: ../../library/datetime.rst:2221
msgid ""
"``zoneinfo`` brings the *IANA timezone database* (also known as the Olson "
"``zoneinfo`` brings the *IANA time zone database* (also known as the Olson "
"database) to Python, and its usage is recommended."
msgstr ""

#: ../../library/datetime.rst:2224
msgid "`IANA timezone database <https://www.iana.org/time-zones>`_"
#, fuzzy
msgid "`IANA time zone database <https://www.iana.org/time-zones>`_"
msgstr "`IANA 時區資料庫 <https://www.iana.org/time-zones>`_"

#: ../../library/datetime.rst:2225
Expand All @@ -2432,12 +2435,12 @@ msgstr ":class:`timezone` 物件"
#: ../../library/datetime.rst:2237
msgid ""
"The :class:`timezone` class is a subclass of :class:`tzinfo`, each instance "
"of which represents a timezone defined by a fixed offset from UTC."
"of which represents a time zone defined by a fixed offset from UTC."
msgstr ""

#: ../../library/datetime.rst:2241
msgid ""
"Objects of this class cannot be used to represent timezone information in "
"Objects of this class cannot be used to represent time zone information in "
"the locations where different offsets are used in different days of the year "
"or where historical changes have been made to civil time."
msgstr ""
Expand Down Expand Up @@ -2494,7 +2497,8 @@ msgid ""
msgstr ""

#: ../../library/datetime.rst:2302
msgid "The UTC timezone, ``timezone(timedelta(0))``."
#, fuzzy
msgid "The UTC time zone, ``timezone(timedelta(0))``."
msgstr "UTC 時區,``timezone(timedelta(0))``。"

#: ../../library/datetime.rst:2311
Expand Down Expand Up @@ -3074,7 +3078,7 @@ msgstr ""

#: ../../library/datetime.rst:2511
msgid ""
"except when the format includes sub-second components or timezone offset "
"except when the format includes sub-second components or time zone offset "
"information, which are supported in ``datetime.strptime`` but are discarded "
"by ``time.strptime``."
msgstr ""
Expand Down

0 comments on commit 7cbdc0e

Please sign in to comment.