Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
5d23758b
Commit
5d23758b
authored
Jun 09, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added docs for strptime().
parent
87ce7bbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
Doc/lib/libtime.tex
Doc/lib/libtime.tex
+12
-0
No files found.
Doc/lib/libtime.tex
View file @
5d23758b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment