@@ -180,19 +180,19 @@ Objects of the :class:`date` type are always naive.
180
180
181
181
An object of type :class: `.time ` or :class: `.datetime ` may be aware or naive.
182
182
183
- A :class: `.datetime ` object * d * is aware if both of the following hold:
183
+ A :class: `.datetime ` object `` d `` is aware if both of the following hold:
184
184
185
185
1. ``d.tzinfo `` is not ``None ``
186
186
2. ``d.tzinfo.utcoffset(d) `` does not return ``None ``
187
187
188
- Otherwise, * d * is naive.
188
+ Otherwise, `` d `` is naive.
189
189
190
- A :class: `.time ` object * t * is aware if both of the following hold:
190
+ A :class: `.time ` object `` t `` is aware if both of the following hold:
191
191
192
192
1. ``t.tzinfo `` is not ``None ``
193
193
2. ``t.tzinfo.utcoffset(None) `` does not return ``None ``.
194
194
195
- Otherwise, * t * is naive.
195
+ Otherwise, `` t `` is naive.
196
196
197
197
The distinction between aware and naive doesn't apply to :class: `timedelta `
198
198
objects.
@@ -358,8 +358,8 @@ Supported operations:
358
358
+--------------------------------+-----------------------------------------------+
359
359
| ``q, r = divmod(t1, t2) `` | Computes the quotient and the remainder: |
360
360
| | ``q = t1 // t2 `` (3) and ``r = t1 % t2 ``. |
361
- | | q is an integer and r is a :class: ` timedelta ` |
362
- | | object. |
361
+ | | `` q `` is an integer and `` r `` is a |
362
+ | | :class: ` timedelta ` object. |
363
363
+--------------------------------+-----------------------------------------------+
364
364
| ``+t1 `` | Returns a :class: `timedelta ` object with the |
365
365
| | same value. (2) |
@@ -526,7 +526,7 @@ Other constructors, all class methods:
526
526
January 1 of year 1 has ordinal 1.
527
527
528
528
:exc: `ValueError ` is raised unless ``1 <= ordinal <=
529
- date.max.toordinal() ``. For any date * d * ,
529
+ date.max.toordinal() ``. For any date `` d `` ,
530
530
``date.fromordinal(d.toordinal()) == d ``.
531
531
532
532
@@ -730,7 +730,7 @@ Instance methods:
730
730
.. method :: date.toordinal()
731
731
732
732
Return the proleptic Gregorian ordinal of the date, where January 1 of year 1
733
- has ordinal 1. For any :class: `date ` object * d * ,
733
+ has ordinal 1. For any :class: `date ` object `` d `` ,
734
734
``date.fromordinal(d.toordinal()) == d ``.
735
735
736
736
@@ -782,7 +782,7 @@ Instance methods:
782
782
783
783
.. method :: date.__str__()
784
784
785
- For a date * d * , ``str(d) `` is equivalent to ``d.isoformat() ``.
785
+ For a date `` d `` , ``str(d) `` is equivalent to ``d.isoformat() ``.
786
786
787
787
788
788
.. method :: date.ctime()
@@ -1063,7 +1063,7 @@ Other constructors, all class methods:
1063
1063
is used. If the *date * argument is a :class: `.datetime ` object, its time components
1064
1064
and :attr: `.tzinfo ` attributes are ignored.
1065
1065
1066
- For any :class: `.datetime ` object * d * ,
1066
+ For any :class: `.datetime ` object `` d `` ,
1067
1067
``d == datetime.combine(d.date(), d.time(), d.tzinfo) ``.
1068
1068
1069
1069
.. versionchanged :: 3.6
@@ -1270,11 +1270,11 @@ Supported operations:
1270
1270
1271
1271
If both are naive, or both are aware and have the same :attr: `~.datetime.tzinfo ` attribute,
1272
1272
the :attr: `~.datetime.tzinfo ` attributes are ignored, and the result is a :class: `timedelta `
1273
- object * t * such that ``datetime2 + t == datetime1 ``. No time zone adjustments
1273
+ object `` t `` such that ``datetime2 + t == datetime1 ``. No time zone adjustments
1274
1274
are done in this case.
1275
1275
1276
1276
If both are aware and have different :attr: `~.datetime.tzinfo ` attributes, ``a-b `` acts
1277
- as if * a * and * b * were first converted to naive UTC datetimes. The
1277
+ as if `` a `` and `` b `` were first converted to naive UTC datetimes. The
1278
1278
result is ``(a.replace(tzinfo=None) - a.utcoffset()) - (b.replace(tzinfo=None)
1279
1279
- b.utcoffset()) `` except that the implementation never overflows.
1280
1280
@@ -1454,11 +1454,11 @@ Instance methods:
1454
1454
1455
1455
.. method :: datetime.utctimetuple()
1456
1456
1457
- If :class: `.datetime ` instance * d * is naive, this is the same as
1457
+ If :class: `.datetime ` instance `` d `` is naive, this is the same as
1458
1458
``d.timetuple() `` except that :attr: `~.time.struct_time.tm_isdst ` is forced to 0 regardless of what
1459
1459
``d.dst() `` returns. DST is never in effect for a UTC time.
1460
1460
1461
- If * d * is aware, * d * is normalized to UTC time, by subtracting
1461
+ If `` d `` is aware, `` d `` is normalized to UTC time, by subtracting
1462
1462
``d.utcoffset() ``, and a :class: `time.struct_time ` for the
1463
1463
normalized time is returned. :attr: `!tm_isdst ` is forced to 0. Note
1464
1464
that an :exc: `OverflowError ` may be raised if ``d.year `` was
@@ -1606,7 +1606,7 @@ Instance methods:
1606
1606
1607
1607
.. method :: datetime.__str__()
1608
1608
1609
- For a :class: `.datetime ` instance * d * , ``str(d) `` is equivalent to
1609
+ For a :class: `.datetime ` instance `` d `` , ``str(d) `` is equivalent to
1610
1610
``d.isoformat(' ') ``.
1611
1611
1612
1612
@@ -1853,7 +1853,7 @@ Instance attributes (read-only):
1853
1853
.. versionadded :: 3.6
1854
1854
1855
1855
:class: `.time ` objects support equality and order comparisons,
1856
- where * a * is considered less than * b * when * a * precedes * b * in time.
1856
+ where `` a `` is considered less than `` b `` when `` a `` precedes `` b `` in time.
1857
1857
1858
1858
Naive and aware :class: `!time ` objects are never equal.
1859
1859
Order comparison between naive and aware :class: `!time ` objects raises
@@ -2000,7 +2000,7 @@ Instance methods:
2000
2000
2001
2001
.. method :: time.__str__()
2002
2002
2003
- For a time * t * , ``str(t) `` is equivalent to ``t.isoformat() ``.
2003
+ For a time `` t `` , ``str(t) `` is equivalent to ``t.isoformat() ``.
2004
2004
2005
2005
2006
2006
.. method :: time.strftime(format)
0 commit comments