Skip to content

Sync with CPython 3.10 #296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 25 additions & 21 deletions c-api/datetime.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.10\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-26 16:47+0000\n"
"POT-Creation-Date: 2022-07-15 00:18+0000\n"
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -161,102 +161,106 @@ msgid ""
"for :class:`datetime.timedelta` objects."
msgstr ""

#: ../../c-api/datetime.rst:137
#: ../../c-api/datetime.rst:138
msgid ""
"Return a :class:`datetime.timezone` object with an unnamed fixed offset "
"represented by the *offset* argument."
msgstr ""

#: ../../c-api/datetime.rst:144
#: ../../c-api/datetime.rst:146
msgid ""
"Return a :class:`datetime.timezone` object with a fixed offset represented "
"by the *offset* argument and with tzname *name*."
msgstr ""

#: ../../c-api/datetime.rst:150
#: ../../c-api/datetime.rst:152
msgid ""
"Macros to extract fields from date objects. The argument must be an "
"instance of :c:data:`PyDateTime_Date`, including subclasses (such as :c:data:"
"`PyDateTime_DateTime`). The argument must not be ``NULL``, and the type is "
"not checked:"
msgstr ""

#: ../../c-api/datetime.rst:157
#: ../../c-api/datetime.rst:159
msgid "Return the year, as a positive int."
msgstr "回傳年份,為正整數。"

#: ../../c-api/datetime.rst:162
#: ../../c-api/datetime.rst:164
msgid "Return the month, as an int from 1 through 12."
msgstr "回傳月份,為正整數,從 1 到 12。"

#: ../../c-api/datetime.rst:167
#: ../../c-api/datetime.rst:169
msgid "Return the day, as an int from 1 through 31."
msgstr "回傳日期,為正整數,從 1 到 31。"

#: ../../c-api/datetime.rst:170
#: ../../c-api/datetime.rst:172
msgid ""
"Macros to extract fields from datetime objects. The argument must be an "
"instance of :c:data:`PyDateTime_DateTime`, including subclasses. The "
"argument must not be ``NULL``, and the type is not checked:"
msgstr ""

#: ../../c-api/datetime.rst:176 ../../c-api/datetime.rst:205
#: ../../c-api/datetime.rst:178 ../../c-api/datetime.rst:216
msgid "Return the hour, as an int from 0 through 23."
msgstr "回傳小時,為正整數,從 0 到 23。"

#: ../../c-api/datetime.rst:181 ../../c-api/datetime.rst:210
#: ../../c-api/datetime.rst:183 ../../c-api/datetime.rst:221
msgid "Return the minute, as an int from 0 through 59."
msgstr "回傳分鐘,為正整數,從 0 到 59。"

#: ../../c-api/datetime.rst:186 ../../c-api/datetime.rst:215
#: ../../c-api/datetime.rst:188 ../../c-api/datetime.rst:226
msgid "Return the second, as an int from 0 through 59."
msgstr "回傳秒,為正整數,從0 到59。"

#: ../../c-api/datetime.rst:191 ../../c-api/datetime.rst:220
#: ../../c-api/datetime.rst:193 ../../c-api/datetime.rst:231
msgid "Return the microsecond, as an int from 0 through 999999."
msgstr "回傳微秒,為正整數,從 0 到 999999。"

#: ../../c-api/datetime.rst:195 ../../c-api/datetime.rst:224
#: ../../c-api/datetime.rst:198 ../../c-api/datetime.rst:236
msgid "Return the fold, as an int from 0 through 1."
msgstr "回傳 fold,為 0 或 1 的正整數。"

#: ../../c-api/datetime.rst:205 ../../c-api/datetime.rst:243
msgid "Return the tzinfo (which may be ``None``)."
msgstr ""

#: ../../c-api/datetime.rst:199
#: ../../c-api/datetime.rst:210
msgid ""
"Macros to extract fields from time objects. The argument must be an "
"instance of :c:data:`PyDateTime_Time`, including subclasses. The argument "
"must not be ``NULL``, and the type is not checked:"
msgstr ""

#: ../../c-api/datetime.rst:229
#: ../../c-api/datetime.rst:248
msgid ""
"Macros to extract fields from time delta objects. The argument must be an "
"instance of :c:data:`PyDateTime_Delta`, including subclasses. The argument "
"must not be ``NULL``, and the type is not checked:"
msgstr ""

#: ../../c-api/datetime.rst:235
#: ../../c-api/datetime.rst:254
msgid "Return the number of days, as an int from -999999999 to 999999999."
msgstr ""

#: ../../c-api/datetime.rst:242
#: ../../c-api/datetime.rst:261
msgid "Return the number of seconds, as an int from 0 through 86399."
msgstr ""

#: ../../c-api/datetime.rst:249
#: ../../c-api/datetime.rst:268
msgid "Return the number of microseconds, as an int from 0 through 999999."
msgstr ""

#: ../../c-api/datetime.rst:254
#: ../../c-api/datetime.rst:273
msgid "Macros for the convenience of modules implementing the DB API:"
msgstr ""

#: ../../c-api/datetime.rst:258
#: ../../c-api/datetime.rst:277
msgid ""
"Create and return a new :class:`datetime.datetime` object given an argument "
"tuple suitable for passing to :meth:`datetime.datetime.fromtimestamp()`."
msgstr ""

#: ../../c-api/datetime.rst:264
#: ../../c-api/datetime.rst:283
msgid ""
"Create and return a new :class:`datetime.date` object given an argument "
"tuple suitable for passing to :meth:`datetime.date.fromtimestamp()`."
Expand Down
Loading