@@ -18,7 +18,7 @@ Macro for access to the UTC singleton:
18
18
.. c :var :: PyObject* PyDateTime_TimeZone_UTC
19
19
20
20
Returns the time zone singleton representing UTC, the same object as
21
- :attr: `` datetime.timezone.utc` `.
21
+ :attr: `datetime.timezone.utc `.
22
22
23
23
.. versionadded :: 3.7
24
24
@@ -89,39 +89,39 @@ Macros to create objects:
89
89
90
90
.. c :function :: PyObject* PyDate_FromDate (int year, int month, int day)
91
91
92
- Return a `` datetime.date` ` object with the specified year, month and day.
92
+ Return a :class:` datetime.date` object with the specified year, month and day.
93
93
94
94
95
95
.. c:function:: PyObject* PyDateTime_FromDateAndTime(int year, int month, int day, int hour, int minute, int second, int usecond)
96
96
97
- Return a `` datetime.datetime` ` object with the specified year, month, day, hour,
97
+ Return a :class:` datetime.datetime` object with the specified year, month, day, hour,
98
98
minute, second and microsecond.
99
99
100
100
101
101
.. c:function:: PyObject* PyTime_FromTime(int hour, int minute, int second, int usecond)
102
102
103
- Return a `` datetime.time` ` object with the specified hour, minute, second and
103
+ Return a :class:` datetime.time` object with the specified hour, minute, second and
104
104
microsecond.
105
105
106
106
107
107
.. c:function:: PyObject* PyDelta_FromDSU(int days, int seconds, int useconds)
108
108
109
- Return a `` datetime.timedelta`` object representing the given number of days,
110
- seconds and microseconds. Normalization is performed so that the resulting
111
- number of microseconds and seconds lie in the ranges documented for
112
- `` datetime.timedelta` ` objects.
109
+ Return a :class:` datetime.timedelta` object representing the given number
110
+ of days, seconds and microseconds. Normalization is performed so that the
111
+ resulting number of microseconds and seconds lie in the ranges documented for
112
+ :class:` datetime.timedelta` objects.
113
113
114
114
.. c:function:: PyObject* PyTimeZone_FromOffset(PyDateTime_DeltaType* offset)
115
115
116
- Return a `` datetime.timezone` ` object with an unnamed fixed offset
116
+ Return a :class:` datetime.timezone` object with an unnamed fixed offset
117
117
represented by the *offset* argument.
118
118
119
119
.. versionadded:: 3.7
120
120
121
121
.. c:function:: PyObject* PyTimeZone_FromOffsetAndName(PyDateTime_DeltaType* offset, PyUnicode* name)
122
122
123
- Return a `` datetime.timezone`` object with a fixed offset represented by
124
- the *offset* argument and with tzname *name*.
123
+ Return a :class:` datetime.timezone` object with a fixed offset represented
124
+ by the *offset* argument and with tzname *name*.
125
125
126
126
.. versionadded:: 3.7
127
127
@@ -223,11 +223,11 @@ Macros for the convenience of modules implementing the DB API:
223
223
224
224
.. c :function :: PyObject* PyDateTime_FromTimestamp (PyObject *args)
225
225
226
- Create and return a new `` datetime.datetime `` object given an argument tuple
227
- suitable for passing to `` datetime.datetime.fromtimestamp() ` `.
226
+ Create and return a new :class: ` datetime.datetime ` object given an argument
227
+ tuple suitable for passing to :meth: ` datetime.datetime.fromtimestamp() `.
228
228
229
229
230
230
.. c :function :: PyObject* PyDate_FromTimestamp (PyObject *args)
231
231
232
- Create and return a new `` datetime.date `` object given an argument tuple
233
- suitable for passing to `` datetime.date.fromtimestamp() ` `.
232
+ Create and return a new :class: ` datetime.date ` object given an argument
233
+ tuple suitable for passing to :meth: ` datetime.date.fromtimestamp() `.
0 commit comments