@@ -30,74 +30,102 @@ msgid ""
3030"structure into a static variable, :c:data:`PyDateTimeAPI`, that is used by "
3131"the following macros."
3232msgstr ""
33+ "De nombreux objets *date* et *time* sont exposés par le module :mod:"
34+ "`DateTime`. Avant d'utiliser une de ces fonctions, le fichier d'en-tête :"
35+ "file:`datetime.h` doit être inclus dans vos sources (veuillez noter qu'il "
36+ "n'est pas inclus par le fichier :file:`Python.h`) et la macro :c:macro:"
37+ "`PyDateTime_IMPORT` doit-être invoquée, généralement lors de la fonction "
38+ "d'initialisation du module. La macro crée un pointeur vers une structure C "
39+ "et place celui-ci dans une variable statique, :c:data:`PyDateTimeAPI`, qui "
40+ "est utilisée par les macros suivantes."
3341
3442#: ../Doc/c-api/datetime.rst:16
3543msgid "Type-check macros:"
36- msgstr ""
44+ msgstr "Macros pour vérifier les types : "
3745
3846#: ../Doc/c-api/datetime.rst:21
3947msgid ""
4048"Return true if *ob* is of type :c:data:`PyDateTime_DateType` or a subtype "
4149"of :c:data:`PyDateTime_DateType`. *ob* must not be *NULL*."
4250msgstr ""
51+ "Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DateType` ou un sous-"
52+ "type de :c:data:`PyDateTime_DateType`. *ob* ne doit pas être *NULL*."
4353
4454#: ../Doc/c-api/datetime.rst:29
4555msgid ""
4656"Return true if *ob* is of type :c:data:`PyDateTime_DateType`. *ob* must not "
4757"be *NULL*."
4858msgstr ""
59+ "Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DateType`. *ob* ne doit "
60+ "pas être *NULL*."
4961
5062#: ../Doc/c-api/datetime.rst:37
5163msgid ""
5264"Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType` or a "
5365"subtype of :c:data:`PyDateTime_DateTimeType`. *ob* must not be *NULL*."
5466msgstr ""
67+ "Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DateTimeType` ou un "
68+ "sous-type de :c:data:`PyDateTime_DateTimeType`. *ob* ne doit pas être *NULL*."
5569
5670#: ../Doc/c-api/datetime.rst:45
5771msgid ""
5872"Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType`. *ob* must "
5973"not be *NULL*."
6074msgstr ""
75+ "Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DateTimeType`. *ob* ne "
76+ "doit pas être *NULL*."
6177
6278#: ../Doc/c-api/datetime.rst:53
6379msgid ""
6480"Return true if *ob* is of type :c:data:`PyDateTime_TimeType` or a subtype "
6581"of :c:data:`PyDateTime_TimeType`. *ob* must not be *NULL*."
6682msgstr ""
83+ "Renvoie vrai si *ob* est de type :c:data:`PyDateTime_TimeType` ou un sous-"
84+ "type de :c:data:`PyDateTime_TimeType`. *ob* ne doit pas être *NULL*."
6785
6886#: ../Doc/c-api/datetime.rst:61
6987msgid ""
7088"Return true if *ob* is of type :c:data:`PyDateTime_TimeType`. *ob* must not "
7189"be *NULL*."
7290msgstr ""
91+ "Renvoie vrai si *ob* est de type :c:data:`PyDateTime_TimeType`. *ob* ne doit "
92+ "pas être *NULL*."
7393
7494#: ../Doc/c-api/datetime.rst:69
7595msgid ""
7696"Return true if *ob* is of type :c:data:`PyDateTime_DeltaType` or a subtype "
7797"of :c:data:`PyDateTime_DeltaType`. *ob* must not be *NULL*."
7898msgstr ""
99+ "Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DeltaType` ou un sous-"
100+ "type de :c:data:`PyDateTime_DeltaType`. *ob* ne doit pas être *NULL*."
79101
80102#: ../Doc/c-api/datetime.rst:77
81103msgid ""
82104"Return true if *ob* is of type :c:data:`PyDateTime_DeltaType`. *ob* must not "
83105"be *NULL*."
84106msgstr ""
107+ "Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DeltaType`. *ob* ne "
108+ "doit pas être *NULL*."
85109
86110#: ../Doc/c-api/datetime.rst:85
87111msgid ""
88112"Return true if *ob* is of type :c:data:`PyDateTime_TZInfoType` or a subtype "
89113"of :c:data:`PyDateTime_TZInfoType`. *ob* must not be *NULL*."
90114msgstr ""
115+ "Renvoie vrai si *ob* est de type :c:data:`PyDateTime_TZInfoType` ou un sous-"
116+ "type de :c:data:`PyDateTime_TZInfoType`. *ob* ne doit pas être *NULL*."
91117
92118#: ../Doc/c-api/datetime.rst:93
93119msgid ""
94120"Return true if *ob* is of type :c:data:`PyDateTime_TZInfoType`. *ob* must "
95121"not be *NULL*."
96122msgstr ""
123+ "Renvoie vrai si *ob* est de type :c:data:`PyDateTime_TZInfoType`. *ob* ne "
124+ "doit pas être *NULL*."
97125
98126#: ../Doc/c-api/datetime.rst:98
99127msgid "Macros to create objects:"
100- msgstr ""
128+ msgstr "Macros pour créer des objets : "
101129
102130#: ../Doc/c-api/datetime.rst:103
103131msgid ""
@@ -131,52 +159,62 @@ msgid ""
131159"`PyDateTime_DateTime`). The argument must not be *NULL*, and the type is "
132160"not checked:"
133161msgstr ""
162+ "Macros pour extraire les champs des objets *date*. L'argument doit être une "
163+ "instance de :c:data:`PyDateTime_Date`, ou une sous-classe (telle que :c:data:"
164+ "`PyDateTime_DateTime`). L'argument ne doit pas être *NULL*, et le type n'est "
165+ "pas vérifié :"
134166
135167#: ../Doc/c-api/datetime.rst:141
136168msgid "Return the year, as a positive int."
137- msgstr ""
169+ msgstr "Renvoie l'année, sous forme d'entier positif. "
138170
139171#: ../Doc/c-api/datetime.rst:148
140172msgid "Return the month, as an int from 1 through 12."
141- msgstr ""
173+ msgstr "Renvoie le mois, sous forme d'entier allant de 1 à 12. "
142174
143175#: ../Doc/c-api/datetime.rst:155
144176msgid "Return the day, as an int from 1 through 31."
145- msgstr ""
177+ msgstr "Renvoie le jour, sous forme d'entier allant de 1 à 31. "
146178
147179#: ../Doc/c-api/datetime.rst:159
148180msgid ""
149181"Macros to extract fields from datetime objects. The argument must be an "
150182"instance of :c:data:`PyDateTime_DateTime`, including subclasses. The "
151183"argument must not be *NULL*, and the type is not checked:"
152184msgstr ""
185+ "Macros pour extraire les champs des objets *datetime*. L'argument doit être "
186+ "une instance de :c:data:`PyDateTime_DateTime` ou une sous-classe de celle-"
187+ "ci. L'argument ne doit pas être *NULL*, et le type n'est pas vérifié :"
153188
154189#: ../Doc/c-api/datetime.rst:166 ../Doc/c-api/datetime.rst:198
155190msgid "Return the hour, as an int from 0 through 23."
156- msgstr ""
191+ msgstr "Renvoie l'heure, sous forme d'entier allant de 0 à 23. "
157192
158193#: ../Doc/c-api/datetime.rst:173 ../Doc/c-api/datetime.rst:205
159194msgid "Return the minute, as an int from 0 through 59."
160- msgstr ""
195+ msgstr "Renvoie la minute, sous forme d'entier allant de 0 à 59. "
161196
162197#: ../Doc/c-api/datetime.rst:180 ../Doc/c-api/datetime.rst:212
163198msgid "Return the second, as an int from 0 through 59."
164- msgstr ""
199+ msgstr "Renvoie la seconde, sous forme d'entier allant de 0 à 59. "
165200
166201#: ../Doc/c-api/datetime.rst:187 ../Doc/c-api/datetime.rst:219
167202msgid "Return the microsecond, as an int from 0 through 999999."
168- msgstr ""
203+ msgstr "Renvoie la microseconde, sous forme d'entier allant de 0 à 999999. "
169204
170205#: ../Doc/c-api/datetime.rst:191
171206msgid ""
172207"Macros to extract fields from time objects. The argument must be an "
173208"instance of :c:data:`PyDateTime_Time`, including subclasses. The argument "
174209"must not be *NULL*, and the type is not checked:"
175210msgstr ""
211+ "Macros pour extraire les champs des objets *time*. L'argument doit être une "
212+ "instance de :c:data:`PyDateTime_Time` ou une sous-classe de celle-ci. "
213+ "L'argument ne doit pas être *NULL*, et le type n'est pas vérifié :"
176214
177215#: ../Doc/c-api/datetime.rst:223
178216msgid "Macros for the convenience of modules implementing the DB API:"
179- msgstr ""
217+ msgstr "Macros de confort pour les modules implémentant l'API DB : "
180218
181219#: ../Doc/c-api/datetime.rst:228
182220msgid ""
0 commit comments