summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libbasehttp.tex
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-02-17 13:34:16 (GMT)
committerGeorg Brandl <georg@python.org>2006-02-17 13:34:16 (GMT)
commit5d076961e285a74d3d5aeae88a52517c38c44846 (patch)
treed950098a3f739e74179fb91c21274749753bb5fd /Doc/lib/libbasehttp.tex
parentbcd548bdb2f40bd739c6ff40f5903c74c190bc23 (diff)
downloadcpython-5d076961e285a74d3d5aeae88a52517c38c44846.zip
cpython-5d076961e285a74d3d5aeae88a52517c38c44846.tar.gz
cpython-5d076961e285a74d3d5aeae88a52517c38c44846.tar.bz2
Patch #1417555: SimpleHTTPServer now returns Last-Modified headers.
Diffstat (limited to 'Doc/lib/libbasehttp.tex')
-rw-r--r--Doc/lib/libbasehttp.tex11
1 files changed, 8 insertions, 3 deletions
diff --git a/Doc/lib/libbasehttp.tex b/Doc/lib/libbasehttp.tex
index fe794f8..64c069f 100644
--- a/Doc/lib/libbasehttp.tex
+++ b/Doc/lib/libbasehttp.tex
@@ -217,11 +217,16 @@ Returns the server software's version string. This is a combination
of the \member{server_version} and \member{sys_version} class variables.
\end{methoddesc}
-\begin{methoddesc}{date_time_string}{}
-Returns the current date and time, formatted for a message header.
+\begin{methoddesc}{date_time_string}{\optional{timestamp}}
+Returns the date and time given by \var{timestamp} (which must be in the
+format returned by \function{time.time()}), formatted for a message header.
+If \var{timestamp} is omitted, it uses the current date and time.
+
+The result looks like \code{'Sun, 06 Nov 1994 08:49:37 GMT'}.
+\versionadded[The \var{timestamp} parameter]{2.5}
\end{methoddesc}
-\begin{methoddesc}{log_data_time_string}{}
+\begin{methoddesc}{log_date_time_string}{}
Returns the current date and time, formatted for logging.
\end{methoddesc}