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

Skip to content

Commit 5d23758

Browse files
committed
Added docs for strptime().
1 parent 87ce7bb commit 5d23758

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Doc/lib/libtime.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,18 @@ \section{Built-in Module \module{time}}
168168

169169
\end{funcdesc}
170170

171+
\begin{funcdesc}{strptime}{string\optional{, format}}
172+
Parse a string representing a time according to a format. The return
173+
value is a tuple as returned by \code{gmtime()} or \code{localtime()}.
174+
The format uses the same directives as those used by
175+
\code{strftime()}; it defaults to \code{"\%a \%b \%d \%H:\%M:\%S \%Y"}
176+
which matches the formatting returned by \code{ctime()}. The same
177+
platform caveats apply; see the local Unix documentation for
178+
restrictions or additional supported directives. This function may
179+
not be defined on all platforms.
180+
181+
\end{funcdesc}
182+
171183
\begin{funcdesc}{time}{}
172184
Return the time as a floating point number expressed in seconds since
173185
the epoch, in UTC. Note that even though the time is always returned

0 commit comments

Comments
 (0)