Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7117af

Browse files
committed
Refer to strftime(3) manpage for platform specific format codes.
Suggested by Skip Montanaro on docs@.
1 parent 04d11a7 commit b7117af

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Doc/library/datetime.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,8 @@ values. If they're used anyway, ``0`` is substituted for them.
17821782

17831783
The full set of format codes supported varies across platforms, because Python
17841784
calls the platform C library's :func:`strftime` function, and platform
1785-
variations are common.
1785+
variations are common. To see the full set of format codes supported on your
1786+
platform, consult the :manpage:`strftime(3)` documentation.
17861787

17871788
The following is a list of all the format codes that the C standard (1989
17881789
version) requires, and these work on all platforms with a standard C

Doc/library/time.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,10 @@ The module defines the following functions and data items:
471471
>>> strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime())
472472
'Thu, 28 Jun 2001 14:17:15 +0000'
473473

474-
Additional directives may be supported on certain platforms, but only the ones
475-
listed here have a meaning standardized by ANSI C.
474+
Additional directives may be supported on certain platforms, but only the
475+
ones listed here have a meaning standardized by ANSI C. To see the full set
476+
of format codes supported on your platform, consult the :manpage:`strftime(3)`
477+
documentation.
476478

477479
On some platforms, an optional field width and precision specification can
478480
immediately follow the initial ``'%'`` of a directive in the following order;

0 commit comments

Comments
 (0)