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

Skip to content

Commit 4e303aa

Browse files
committed
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.
1 parent b1510d5 commit 4e303aa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/lib/libtime.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ \section{\module{time} ---
124124
or \function{localtime()} to a 24-character string of the following form:
125125
\code{'Sun Jun 20 23:21:05 1993'}. If \var{tuple} is not provided, the
126126
current time as returned by \function{localtime()} is used.
127+
Locale information is not used by \function{asctime()}.
127128
\note{Unlike the C function of the same name, there is no trailing
128129
newline.}
129130
\versionchanged[Allowed \var{tuple} to be omitted]{2.1}
@@ -149,6 +150,7 @@ \section{\module{time} ---
149150
representing local time. If \var{secs} is not provided, the current time
150151
as returned by \function{time()} is used. \code{ctime(\var{secs})}
151152
is equivalent to \code{asctime(localtime(\var{secs}))}.
153+
Locale information is not used by \function{ctime()}.
152154
\versionchanged[Allowed \var{secs} to be omitted]{2.1}
153155
\end{funcdesc}
154156

0 commit comments

Comments
 (0)