summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-10-30 18:17:03 (GMT)
committerFred Drake <fdrake@acm.org>2002-10-30 18:17:03 (GMT)
commit4e303aad05d5133aee6465e7a953e9b54410ecec (patch)
tree996ab1aabea5ae01a7aabee82459b3e9ea2da9cb /Doc/lib
parentb1510d506072f3857aaa8b1f9996520ee998804d (diff)
downloadcpython-4e303aad05d5133aee6465e7a953e9b54410ecec.zip
cpython-4e303aad05d5133aee6465e7a953e9b54410ecec.tar.gz
cpython-4e303aad05d5133aee6465e7a953e9b54410ecec.tar.bz2
Add notes to the asctime() and ctime() descriptions to make it
explicit that locale information is not used. There wasn't anything that implied it was, but this has confused users.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libtime.tex2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/lib/libtime.tex b/Doc/lib/libtime.tex
index 988e9a4..193d71b 100644
--- a/Doc/lib/libtime.tex
+++ b/Doc/lib/libtime.tex
@@ -124,6 +124,7 @@ Convert a tuple representing a time as returned by \function{gmtime()}
or \function{localtime()} to a 24-character string of the following form:
\code{'Sun Jun 20 23:21:05 1993'}. If \var{tuple} is not provided, the
current time as returned by \function{localtime()} is used.
+Locale information is not used by \function{asctime()}.
\note{Unlike the C function of the same name, there is no trailing
newline.}
\versionchanged[Allowed \var{tuple} to be omitted]{2.1}
@@ -149,6 +150,7 @@ Convert a time expressed in seconds since the epoch to a string
representing local time. If \var{secs} is not provided, the current time
as returned by \function{time()} is used. \code{ctime(\var{secs})}
is equivalent to \code{asctime(localtime(\var{secs}))}.
+Locale information is not used by \function{ctime()}.
\versionchanged[Allowed \var{secs} to be omitted]{2.1}
\end{funcdesc}