Skip to content

Commit 1257cde

Browse files
Add references
1 parent af7e82d commit 1257cde

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎Doc/library/datetime.rst‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,13 @@ Objects of the :class:`date` type are always naive.
180180

181181
An object of type :class:`.time` or :class:`.datetime` may be aware or naive.
182182

183-
A :class:`.datetime` object ``d`` is aware if ``d.utcoffset()`` does not return
184-
``None``. Otherwise, ``d`` is naive.
183+
A :class:`.datetime` object ``d`` is aware if
184+
:meth:`d.utcoffset() <datetime.utcoffset>` does not return ``None``.
185+
Otherwise, ``d`` is naive.
185186

186-
A :class:`.time` object ``t`` is aware if ``t.utcoffset()`` does not return
187-
``None``. Otherwise, ``t`` is naive.
187+
A :class:`.time` object ``t`` is aware if
188+
:meth:`t.utcoffset() <time.utcoffset>` does not return ``None``.
189+
Otherwise, ``t`` is naive.
188190

189191
The distinction between aware and naive doesn't apply to :class:`timedelta`
190192
objects.

0 commit comments

Comments
 (0)