[Python-checkins] cpython (3.3): Refer to strftime(3) manpage for platform specific format codes.
georg.brandl
python-checkins at python.org
Sun Oct 13 18:38:12 CEST 2013
http://hg.python.org/cpython/rev/23b6f485e59c
changeset: 86318:23b6f485e59c
branch: 3.3
parent: 86314:54d422f5a5c6
user: Georg Brandl <georg at python.org>
date: Sun Oct 13 18:28:25 2013 +0200
summary:
Refer to strftime(3) manpage for platform specific format codes.
Suggested by Skip Montanaro on docs at .
files:
Doc/library/datetime.rst | 3 ++-
Doc/library/time.rst | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -1782,7 +1782,8 @@
The full set of format codes supported varies across platforms, because Python
calls the platform C library's :func:`strftime` function, and platform
-variations are common.
+variations are common. To see the full set of format codes supported on your
+platform, consult the :manpage:`strftime(3)` documentation.
The following is a list of all the format codes that the C standard (1989
version) requires, and these work on all platforms with a standard C
diff --git a/Doc/library/time.rst b/Doc/library/time.rst
--- a/Doc/library/time.rst
+++ b/Doc/library/time.rst
@@ -471,8 +471,10 @@
>>> strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime())
'Thu, 28 Jun 2001 14:17:15 +0000'
- Additional directives may be supported on certain platforms, but only the ones
- listed here have a meaning standardized by ANSI C.
+ Additional directives may be supported on certain platforms, but only the
+ ones listed here have a meaning standardized by ANSI C. To see the full set
+ of format codes supported on your platform, consult the :manpage:`strftime(3)`
+ documentation.
On some platforms, an optional field width and precision specification can
immediately follow the initial ``'%'`` of a directive in the following order;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list