diff Doc/lib/libbasehttp.tex @ 36555:4668df450672 legacy-trunk

Patch #1417555: SimpleHTTPServer now returns Last-Modified headers.
author Georg Brandl <georg@python.org>
date Fri, 17 Feb 2006 13:34:16 +0000
parents fc6a73905e6f
children
line wrap: on
line diff
--- a/Doc/lib/libbasehttp.tex	Fri Feb 17 11:51:41 2006 +0000
+++ b/Doc/lib/libbasehttp.tex	Fri Feb 17 13:34:16 2006 +0000
@@ -217,11 +217,16 @@
 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}