diff options
author | Guido van Rossum <guido@python.org> | 1998-06-09 16:30:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-06-09 16:30:56 (GMT) |
commit | 5d23758be7bca6c64f6b74f49227a8039d93fb5d (patch) | |
tree | 1dba0aca1b896148ff6721c15f0166d7f6e3951a /Doc | |
parent | 87ce7bbc396c6eea2d1151ab89ccfeff3830460f (diff) | |
download | cpython-5d23758be7bca6c64f6b74f49227a8039d93fb5d.zip cpython-5d23758be7bca6c64f6b74f49227a8039d93fb5d.tar.gz cpython-5d23758be7bca6c64f6b74f49227a8039d93fb5d.tar.bz2 |
Added docs for strptime().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libtime.tex | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/lib/libtime.tex b/Doc/lib/libtime.tex index ed4f4ef..483469d 100644 --- a/Doc/lib/libtime.tex +++ b/Doc/lib/libtime.tex @@ -168,6 +168,18 @@ The field width is normally 2 except for \code{\%j} where it is 3. \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}{} 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 |