Kaydet (Commit) 5d23758b authored tarafından Guido van Rossum's avatar Guido van Rossum

Added docs for strptime().

üst 87ce7bbc
...@@ -168,6 +168,18 @@ The field width is normally 2 except for \code{\%j} where it is 3. ...@@ -168,6 +168,18 @@ The field width is normally 2 except for \code{\%j} where it is 3.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{strptime}{string\optional{, format}}
Parse a string representing a time according to a format. The return
value is a tuple as returned by \code{gmtime()} or \code{localtime()}.
The format uses the same directives as those used by
\code{strftime()}; it defaults to \code{"\%a \%b \%d \%H:\%M:\%S \%Y"}
which matches the formatting returned by \code{ctime()}. The same
platform caveats apply; see the local Unix documentation for
restrictions or additional supported directives. This function may
not be defined on all platforms.
\end{funcdesc}
\begin{funcdesc}{time}{} \begin{funcdesc}{time}{}
Return the time as a floating point number expressed in seconds since Return the time as a floating point number expressed in seconds since
the epoch, in UTC. Note that even though the time is always returned the epoch, in UTC. Note that even though the time is always returned
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment