diff options
author | Georg Brandl <georg@python.org> | 2013-10-13 16:28:25 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-10-13 16:28:25 (GMT) |
commit | 1b1c11d208587aefd3c8b11637b6c163e4c86dfd (patch) | |
tree | 96f8e59b75b0a91335a94ccc081e5087d5acd52f | |
parent | 55c45c71cf17797475e231fce7a1d196e37d26f7 (diff) | |
download | cpython-1b1c11d208587aefd3c8b11637b6c163e4c86dfd.zip cpython-1b1c11d208587aefd3c8b11637b6c163e4c86dfd.tar.gz cpython-1b1c11d208587aefd3c8b11637b6c163e4c86dfd.tar.bz2 |
Refer to strftime(3) manpage for platform specific format codes.
Suggested by Skip Montanaro on docs@.
-rw-r--r-- | Doc/library/datetime.rst | 3 | ||||
-rw-r--r-- | Doc/library/time.rst | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 4e922f0..0de7391 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1603,7 +1603,8 @@ values. If they're used anyway, ``0`` is substituted for them. 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 index a4de69f..1129ea4 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -350,8 +350,10 @@ The module defines the following functions and data items: >>> 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; |