5
5
# Translators:
6
6
# Ching-Lung Chuang, 2015
7
7
# Liang-Bo Wang <me@liang2.tw>, 2015
8
+ # Matt Wang <mattwang44@gmail.com>, 2023
8
9
msgid ""
9
10
msgstr ""
10
11
"Project-Id-Version : Python 3.11\n "
11
12
"Report-Msgid-Bugs-To : \n "
12
13
"POT-Creation-Date : 2022-07-15 00:18+0000\n "
13
- "PO-Revision-Date : 2017-09-22 18:26+0000 \n "
14
- "Last-Translator : Liang-Bo Wang <me@liang2.tw >\n "
14
+ "PO-Revision-Date : 2023-07-01 04:14+0800 \n "
15
+ "Last-Translator : Matt Wang <mattwang44@gmail.com >\n "
15
16
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
16
17
"tw)\n "
17
18
"Language : zh_TW\n "
18
19
"MIME-Version : 1.0\n "
19
20
"Content-Type : text/plain; charset=UTF-8\n "
20
21
"Content-Transfer-Encoding : 8bit\n "
21
22
"Plural-Forms : nplurals=1; plural=0;\n "
23
+ "X-Generator : Poedit 3.3.1\n "
22
24
23
25
#: ../../c-api/datetime.rst:6
24
26
msgid "DateTime Objects"
@@ -34,124 +36,155 @@ msgid ""
34
36
"structure into a static variable, :c:data:`PyDateTimeAPI`, that is used by "
35
37
"the following macros."
36
38
msgstr ""
39
+ ":mod:`datetime` 模組提供各種日期和時間物件。在使用任何這些函式之前,必須將標"
40
+ "頭檔 :file:`datetime.h` 引入於原始碼中(請注意,:file:`Python.h` 並無引入該標"
41
+ "頭檔),且巨集 :c:macro:`PyDateTime_IMPORT` 必須被調用,而這通常作為模組初始"
42
+ "化函式的一部分。該巨集將指向 C 結構的指標放入靜態變數 :c:data:"
43
+ "`PyDateTimeAPI` 中,該變數會被以下巨集使用。"
37
44
38
45
#: ../../c-api/datetime.rst:16
39
46
msgid "Macro for access to the UTC singleton:"
40
- msgstr ""
47
+ msgstr "用於存取 UTC 單例 (singleton) 的巨集: "
41
48
42
49
#: ../../c-api/datetime.rst:20
43
50
msgid ""
44
51
"Returns the time zone singleton representing UTC, the same object as :attr:"
45
52
"`datetime.timezone.utc`."
46
53
msgstr ""
54
+ "回傳表示 UTC 的時區單例,是與 :attr:`datetime.timezone.utc` 相同的物件。"
47
55
48
56
#: ../../c-api/datetime.rst:26
49
57
msgid "Type-check macros:"
50
- msgstr ""
58
+ msgstr "型別檢查巨集: "
51
59
52
60
#: ../../c-api/datetime.rst:30
53
61
msgid ""
54
62
"Return true if *ob* is of type :c:data:`PyDateTime_DateType` or a subtype "
55
63
"of :c:data:`PyDateTime_DateType`. *ob* must not be ``NULL``. This function "
56
64
"always succeeds."
57
65
msgstr ""
66
+ "如果 *ob* 的型別為 :c:data:`PyDateTime_DateType` 或 :c:data:"
67
+ "`PyDateTime_DateType` 的子型別,則回傳 true。 *ob* 不得為 ``NULL``。這個函式"
68
+ "一定會執行成功。"
58
69
59
70
#: ../../c-api/datetime.rst:37
60
71
msgid ""
61
72
"Return true if *ob* is of type :c:data:`PyDateTime_DateType`. *ob* must not "
62
73
"be ``NULL``. This function always succeeds."
63
74
msgstr ""
75
+ "如果 *ob* 的型別為 :c:data:`PyDateTime_DateType`,則回傳 true。 *ob* 不得為 "
76
+ "``NULL``。這個函式一定會執行成功。"
64
77
65
78
#: ../../c-api/datetime.rst:43
66
79
msgid ""
67
80
"Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType` or a "
68
81
"subtype of :c:data:`PyDateTime_DateTimeType`. *ob* must not be ``NULL``. "
69
82
"This function always succeeds."
70
83
msgstr ""
84
+ "如果 *ob* 的型別為 :c:data:`PyDateTime_DateTimeType` 或 :c:data:"
85
+ "`PyDateTime_DateTimeType` 的子型別,則回傳 true。*ob* 不得為 ``NULL``。這個函"
86
+ "式一定會執行成功。"
71
87
72
88
#: ../../c-api/datetime.rst:50
73
89
msgid ""
74
90
"Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType`. *ob* must "
75
91
"not be ``NULL``. This function always succeeds."
76
92
msgstr ""
93
+ "如果 *ob* 的型別為 :c:data:`PyDateTime_DateTimeType`,則回傳 true。*ob* 不得"
94
+ "為 ``NULL``。這個函式一定會執行成功。"
77
95
78
96
#: ../../c-api/datetime.rst:56
79
97
msgid ""
80
98
"Return true if *ob* is of type :c:data:`PyDateTime_TimeType` or a subtype "
81
99
"of :c:data:`PyDateTime_TimeType`. *ob* must not be ``NULL``. This function "
82
100
"always succeeds."
83
101
msgstr ""
102
+ "如果 *ob* 的型別為 :c:data:`PyDateTime_TimeType` 或 :c:data:"
103
+ "`PyDateTime_TimeType` 的子型別,則回傳 true。*ob* 不得為 ``NULL``。這個函式一"
104
+ "定會執行成功。"
84
105
85
106
#: ../../c-api/datetime.rst:63
86
107
msgid ""
87
108
"Return true if *ob* is of type :c:data:`PyDateTime_TimeType`. *ob* must not "
88
109
"be ``NULL``. This function always succeeds."
89
110
msgstr ""
111
+ "如果 *ob* 的型別為 :c:data:`PyDateTime_TimeType`,則回傳 true。*ob* 不得為 "
112
+ "``NULL``。這個函式一定會執行成功。"
90
113
91
114
#: ../../c-api/datetime.rst:69
92
115
msgid ""
93
116
"Return true if *ob* is of type :c:data:`PyDateTime_DeltaType` or a subtype "
94
117
"of :c:data:`PyDateTime_DeltaType`. *ob* must not be ``NULL``. This "
95
118
"function always succeeds."
96
119
msgstr ""
120
+ "如果 *ob* 的型別為 :c:data:`PyDateTime_DeltaType` 或 :c:data:"
121
+ "`PyDateTime_DeltaType` 的子型別,則回傳 true。*ob* 不得為 ``NULL``。這個函式"
122
+ "一定會執行成功。"
97
123
98
124
#: ../../c-api/datetime.rst:76
99
125
msgid ""
100
126
"Return true if *ob* is of type :c:data:`PyDateTime_DeltaType`. *ob* must not "
101
127
"be ``NULL``. This function always succeeds."
102
128
msgstr ""
129
+ "如果 *ob* 的型別為 :c:data:`PyDateTime_DeltaType`,則回傳 true。*ob* 不得為 "
130
+ "``NULL``。這個函式一定會執行成功。"
103
131
104
132
#: ../../c-api/datetime.rst:82
105
133
msgid ""
106
134
"Return true if *ob* is of type :c:data:`PyDateTime_TZInfoType` or a subtype "
107
135
"of :c:data:`PyDateTime_TZInfoType`. *ob* must not be ``NULL``. This "
108
136
"function always succeeds."
109
137
msgstr ""
138
+ "如果 *ob* 的型別為 :c:data:`PyDateTime_TZInfoType` 或 :c:data:"
139
+ "`PyDateTime_TZInfoType` 的子型別,則回傳 true。*ob* 不得為 ``NULL``。這個函式"
140
+ "一定會執行成功。"
110
141
111
142
#: ../../c-api/datetime.rst:89
112
143
msgid ""
113
144
"Return true if *ob* is of type :c:data:`PyDateTime_TZInfoType`. *ob* must "
114
145
"not be ``NULL``. This function always succeeds."
115
146
msgstr ""
147
+ "如果 *ob* 的型別為 :c:data:`PyDateTime_TZInfoType`,則回傳 true。 *ob* 不得"
148
+ "為 ``NULL``。這個函式一定會執行成功。"
116
149
117
150
#: ../../c-api/datetime.rst:93
118
151
msgid "Macros to create objects:"
119
- msgstr ""
152
+ msgstr "建立物件的巨集: "
120
153
121
154
#: ../../c-api/datetime.rst:97
122
- #, fuzzy
123
155
msgid ""
124
156
"Return a :class:`datetime.date` object with the specified year, month and "
125
157
"day."
126
- msgstr "回傳一個具體的年 、月、日物件 `` datetime.date`` \\ 。"
158
+ msgstr "回傳一個有特定年 、月、日的物件 :class:` datetime.date`。"
127
159
128
160
#: ../../c-api/datetime.rst:102
129
- #, fuzzy
130
161
msgid ""
131
162
"Return a :class:`datetime.datetime` object with the specified year, month, "
132
163
"day, hour, minute, second and microsecond."
133
- msgstr "回傳一個具體的年、月、日物件 ``datetime.date``\\ 。"
164
+ msgstr ""
165
+ "回傳一個有特定年、月、日、時、分、秒、微秒的物件 :class:`datetime.datetime`。"
134
166
135
167
#: ../../c-api/datetime.rst:108
136
- #, fuzzy
137
168
msgid ""
138
169
"Return a :class:`datetime.datetime` object with the specified year, month, "
139
170
"day, hour, minute, second, microsecond and fold."
140
- msgstr "回傳一個具體的年、月、日物件 ``datetime.date``\\ 。"
171
+ msgstr ""
172
+ "回傳一個有特定年、月、日、時、分、秒、微秒與 fold(時間折疊)的物件 :class:"
173
+ "`datetime.datetime`。"
141
174
142
175
#: ../../c-api/datetime.rst:116
143
- #, fuzzy
144
176
msgid ""
145
177
"Return a :class:`datetime.time` object with the specified hour, minute, "
146
178
"second and microsecond."
147
- msgstr "回傳一個具體的年、月、日物件 `` datetime.date`` \\ 。"
179
+ msgstr "回傳一個有特定時、分、秒、微秒的物件 :class:` datetime.date`。"
148
180
149
181
#: ../../c-api/datetime.rst:122
150
- #, fuzzy
151
182
msgid ""
152
183
"Return a :class:`datetime.time` object with the specified hour, minute, "
153
184
"second, microsecond and fold."
154
- msgstr "回傳一個具體的年、月、日物件 ``datetime.date``\\ 。"
185
+ msgstr ""
186
+ "回傳一個有特定時、分、秒、微秒與 fold(時間折疊)的物件 :class:`datetime."
187
+ "time`。"
155
188
156
189
#: ../../c-api/datetime.rst:130
157
190
msgid ""
@@ -160,18 +193,25 @@ msgid ""
160
193
"resulting number of microseconds and seconds lie in the ranges documented "
161
194
"for :class:`datetime.timedelta` objects."
162
195
msgstr ""
196
+ "回傳一個 :class:`datetime.timedelta` 物件,表示給定的天數、秒數和微秒數。執行"
197
+ "標準化 (normalization) 以便生成的微秒數和秒數位於 :class:`datetime."
198
+ "timedelta` 物件記錄的範圍內。"
163
199
164
200
#: ../../c-api/datetime.rst:138
165
201
msgid ""
166
202
"Return a :class:`datetime.timezone` object with an unnamed fixed offset "
167
203
"represented by the *offset* argument."
168
204
msgstr ""
205
+ "回傳一個 :class:`datetime.timezone` 物件,其未命名的固定偏移量由 *offset* 引"
206
+ "數表示。"
169
207
170
208
#: ../../c-api/datetime.rst:146
171
209
msgid ""
172
210
"Return a :class:`datetime.timezone` object with a fixed offset represented "
173
211
"by the *offset* argument and with tzname *name*."
174
212
msgstr ""
213
+ "回傳一個 :class:`datetime.timezone` 物件,其固定偏移量由 *offset* 引數表示,"
214
+ "並帶有 tzname *name*。"
175
215
176
216
#: ../../c-api/datetime.rst:152
177
217
msgid ""
@@ -180,6 +220,9 @@ msgid ""
180
220
"`PyDateTime_DateTime`). The argument must not be ``NULL``, and the type is "
181
221
"not checked:"
182
222
msgstr ""
223
+ "從 date 物件中提取欄位的巨集。引數必須是個 :c:data:`PyDateTime_Date` 的實例,"
224
+ "包括子類別(例如 :c:data:`PyDateTime_DateTime`)。引數不得為 ``NULL``,並且不"
225
+ "會檢查型別:"
183
226
184
227
#: ../../c-api/datetime.rst:159
185
228
msgid "Return the year, as a positive int."
@@ -199,6 +242,8 @@ msgid ""
199
242
"instance of :c:data:`PyDateTime_DateTime`, including subclasses. The "
200
243
"argument must not be ``NULL``, and the type is not checked:"
201
244
msgstr ""
245
+ "從 datetime 物件中提取欄位的巨集。引數必須是個 :c:data:`PyDateTime_DateTime` "
246
+ "的實例,包括子類別。引數不得為 ``NULL``,並且不會檢查型別:"
202
247
203
248
#: ../../c-api/datetime.rst:178 ../../c-api/datetime.rst:216
204
249
msgid "Return the hour, as an int from 0 through 23."
@@ -222,46 +267,54 @@ msgstr "回傳 fold,為 0 或 1 的正整數。"
222
267
223
268
#: ../../c-api/datetime.rst:205 ../../c-api/datetime.rst:243
224
269
msgid "Return the tzinfo (which may be ``None``)."
225
- msgstr ""
270
+ msgstr "回傳 tzinfo(可能是 ``None``)。 "
226
271
227
272
#: ../../c-api/datetime.rst:210
228
273
msgid ""
229
274
"Macros to extract fields from time objects. The argument must be an "
230
275
"instance of :c:data:`PyDateTime_Time`, including subclasses. The argument "
231
276
"must not be ``NULL``, and the type is not checked:"
232
277
msgstr ""
278
+ "從 time 物件中提取欄位的巨集。引數必須是個 :c:data:`PyDateTime_Time` 的實例,"
279
+ "包括子類別。引數不得為 ``NULL``,並且不會檢查型別:"
233
280
234
281
#: ../../c-api/datetime.rst:248
235
282
msgid ""
236
283
"Macros to extract fields from time delta objects. The argument must be an "
237
284
"instance of :c:data:`PyDateTime_Delta`, including subclasses. The argument "
238
285
"must not be ``NULL``, and the type is not checked:"
239
286
msgstr ""
287
+ "從 time delta 物件中提取欄位的巨集。引數必須是個 :c:data:`PyDateTime_Delta` "
288
+ "的實例,包括子類別。引數不能為 ``NULL``,並且不會檢查型別:"
240
289
241
290
#: ../../c-api/datetime.rst:254
242
291
msgid "Return the number of days, as an int from -999999999 to 999999999."
243
- msgstr ""
292
+ msgstr "以 -999999999 到 999999999 之間的整數形式回傳天數。 "
244
293
245
294
#: ../../c-api/datetime.rst:261
246
295
msgid "Return the number of seconds, as an int from 0 through 86399."
247
- msgstr ""
296
+ msgstr "以 0 到 86399 之間的整數形式回傳秒數。 "
248
297
249
298
#: ../../c-api/datetime.rst:268
250
299
msgid "Return the number of microseconds, as an int from 0 through 999999."
251
- msgstr ""
300
+ msgstr "以 0 到 999999 之間的整數形式回傳微秒數。 "
252
301
253
302
#: ../../c-api/datetime.rst:273
254
303
msgid "Macros for the convenience of modules implementing the DB API:"
255
- msgstr ""
304
+ msgstr "為了方便模組實作 DB API 的巨集: "
256
305
257
306
#: ../../c-api/datetime.rst:277
258
307
msgid ""
259
308
"Create and return a new :class:`datetime.datetime` object given an argument "
260
309
"tuple suitable for passing to :meth:`datetime.datetime.fromtimestamp()`."
261
310
msgstr ""
311
+ "給定一個適合傳遞給 :meth:`datetime.datetime.fromtimestamp()` 的引數元組,建立"
312
+ "並回傳一個新的 :class:`datetime.datetime` 物件。"
262
313
263
314
#: ../../c-api/datetime.rst:283
264
315
msgid ""
265
316
"Create and return a new :class:`datetime.date` object given an argument "
266
317
"tuple suitable for passing to :meth:`datetime.date.fromtimestamp()`."
267
318
msgstr ""
319
+ "給定一個適合傳遞給 :meth:`datetime.date.fromtimestamp()` 的引數元組,建立並回"
320
+ "傳一個新的 :class:`datetime.date` 物件。"
0 commit comments