From 16c0d23ea9c5f65fc28fbf098a3f2dfd44c90d95 Mon Sep 17 00:00:00 2001 From: milde Date: Thu, 20 Jan 2022 10:09:24 +0000 Subject: Add/update link to time.strftime(). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8952 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/docs/ref/rst/directives.txt | 4 +++- docutils/docs/user/config.txt | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'docutils') diff --git a/docutils/docs/ref/rst/directives.txt b/docutils/docs/ref/rst/directives.txt index bd997b947..66d422fbb 100644 --- a/docutils/docs/ref/rst/directives.txt +++ b/docutils/docs/ref/rst/directives.txt @@ -1368,7 +1368,7 @@ into the document as text. This directive may be used in substitution definitions only. The optional directive content is interpreted as the desired date -format, using the same codes as Python's time.strftime function. The +format, using the same codes as Python's `time.strftime()`__ function. The default format is "%Y-%m-%d" (ISO 8601 date), but time fields can also be used. Examples:: @@ -1379,6 +1379,8 @@ be used. Examples:: This document was generated on |date| at |time|. +__ https://docs.python.org/3/library/time.html#time.strftime + --------------- Miscellaneous diff --git a/docutils/docs/user/config.txt b/docutils/docs/user/config.txt index 6a8a203bd..e971e8dfa 100644 --- a/docutils/docs/user/config.txt +++ b/docutils/docs/user/config.txt @@ -225,8 +225,7 @@ datestamp --------- Include a time/datestamp in the document footer. Contains a -format string for Python's ``time.strftime``. See the `time -module documentation`__. +format string for Python's `time.strftime()`__. Default: None. Options: ``--date, -d, --time, -t, --no-datestamp``. @@ -244,7 +243,7 @@ Configuration file entry examples:: # Disables datestamp; equivalent to --no-datestamp: datestamp: -__ http://www.python.org/doc/current/lib/module-time.html +__ https://docs.python.org/3/library/time.html#time.strftime debug ----- -- cgit v1.2.1