From: Georg Brandl Date: Sun, 13 Oct 2013 16:28:25 +0000 (+0200) Subject: Refer to strftime(3) manpage for platform specific format codes. X-Git-Tag: v3.4.0a4~125^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7117af07d20aefa12c95c5320c13b88afdf5a58;p=thirdparty%2FPython%2Fcpython.git Refer to strftime(3) manpage for platform specific format codes. Suggested by Skip Montanaro on docs@. --- diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 30b63e1d98c5..6ca15b71ae4b 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1782,7 +1782,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 1e21fb6c5150..cc8f716a506b 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -471,8 +471,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;