@@ -1683,13 +1683,13 @@ Date and time types suitable for expressing timestamps were added as the
16831683fancy features, and just stick to the basics of representing time.
16841684
16851685The three primary types are: :class: `date `, representing a day, month, and year;
1686- :class: `time `, consisting of hour, minute, and second; and :class: `datetime `,
1687- which contains all the attributes of both :class: `date ` and :class: `time `.
1686+ :class: `~datetime. time `, consisting of hour, minute, and second; and :class: `~datetime. datetime `,
1687+ which contains all the attributes of both :class: `date ` and :class: `~datetime. time `.
16881688There's also a :class: `timedelta ` class representing differences between two
16891689points in time, and time zone logic is implemented by classes inheriting from
16901690the abstract :class: `tzinfo ` class.
16911691
1692- You can create instances of :class: `date ` and :class: `time ` by either supplying
1692+ You can create instances of :class: `date ` and :class: `~datetime. time ` by either supplying
16931693keyword arguments to the appropriate constructor, e.g.
16941694``datetime.date(year=1972, month=10, day=15) ``, or by using one of a number of
16951695class methods. For example, the :meth: `date.today ` class method returns the
@@ -1708,7 +1708,7 @@ number of methods for producing formatted strings from objects::
17081708 '2002 30 Dec'
17091709
17101710The :meth: `replace ` method allows modifying one or more fields of a
1711- :class: `date ` or :class: `datetime ` instance, returning a new instance::
1711+ :class: `date ` or :class: `~datetime. datetime ` instance, returning a new instance::
17121712
17131713 >>> d = datetime.datetime.now()
17141714 >>> d
@@ -1718,11 +1718,11 @@ The :meth:`replace` method allows modifying one or more fields of a
17181718 >>>
17191719
17201720Instances can be compared, hashed, and converted to strings (the result is the
1721- same as that of :meth: `isoformat `). :class: `date ` and :class: `datetime `
1721+ same as that of :meth: `isoformat `). :class: `date ` and :class: `~datetime. datetime `
17221722instances can be subtracted from each other, and added to :class: `timedelta `
17231723instances. The largest missing feature is that there's no standard library
17241724support for parsing strings and getting back a :class: `date ` or
1725- :class: `datetime `.
1725+ :class: `~datetime. datetime `.
17261726
17271727For more information, refer to the module's reference documentation.
17281728(Contributed by Tim Peters.)
0 commit comments