summaryrefslogtreecommitdiffstats
path: root/Doc/library/datetime.rst
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-02-08 01:34:09 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-02-08 01:34:09 (GMT)
commitd5db14794bdeb4646ede5881aed43dd1838ffe7a (patch)
tree867cd7b301dd19e4db74e191281398ae40d00782 /Doc/library/datetime.rst
parentb6213c5664cf983ae67059a41520af1aaeeb52c3 (diff)
downloadcpython-d5db14794bdeb4646ede5881aed43dd1838ffe7a.zip
cpython-d5db14794bdeb4646ede5881aed43dd1838ffe7a.tar.gz
cpython-d5db14794bdeb4646ede5881aed43dd1838ffe7a.tar.bz2
Issue #25179: Preparatory cleanup of existing docs on string formatting
* Various sections were pointing to the section on the string.Formatter class, when the section on the common format string syntax is probably more appropriate * Fix references to various format() functions and methods * Nested replacement fields may contain conversions and format specifiers, and this is tested; see Issue #19729 for instance
Diffstat (limited to 'Doc/library/datetime.rst')
-rw-r--r--Doc/library/datetime.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 976cd49..980dfcf 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -604,7 +604,7 @@ Instance methods:
.. method:: date.__format__(format)
- Same as :meth:`.date.strftime`. This makes it possible to specify format
+ Same as :meth:`.date.strftime`. This makes it possible to specify a format
string for a :class:`.date` object when using :meth:`str.format`. For a
complete list of formatting directives, see
:ref:`strftime-strptime-behavior`.
@@ -1179,7 +1179,7 @@ Instance methods:
.. method:: datetime.__format__(format)
- Same as :meth:`.datetime.strftime`. This makes it possible to specify format
+ Same as :meth:`.datetime.strftime`. This makes it possible to specify a format
string for a :class:`.datetime` object when using :meth:`str.format`. For a
complete list of formatting directives, see
:ref:`strftime-strptime-behavior`.
@@ -1424,7 +1424,7 @@ Instance methods:
.. method:: time.__format__(format)
- Same as :meth:`.time.strftime`. This makes it possible to specify format string
+ Same as :meth:`.time.strftime`. This makes it possible to specify a format string
for a :class:`.time` object when using :meth:`str.format`. For a
complete list of formatting directives, see
:ref:`strftime-strptime-behavior`.