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
3b0c82a2
Commit
3b0c82a2
authored
Nov 09, 2001
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the documentation for formatdate().
parent
9cff0e60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
Doc/lib/emailutil.tex
Doc/lib/emailutil.tex
+14
-5
No files found.
Doc/lib/emailutil.tex
View file @
3b0c82a2
...
...
@@ -105,9 +105,18 @@ changes in daylight savings time, though not worth worrying about for
common use.
\end{funcdesc}
\begin{funcdesc}
{
formatdate
}{
\optional
{
timeval
}}
Returns the time formatted as per Internet standards
\rfc
{
2822
}
and updated by
\rfc
{
1123
}
. If
\var
{
timeval
}
is provided, then it
should be a floating point time value as expected by
\method
{
time.gmtime()
}
, otherwise the current time is used.
\begin{funcdesc}
{
formatdate
}{
\optional
{
timeval
\optional
{
, localtime
}}}
Returns a date string as per Internet standard
\rfc
{
2822
}
, e.g.:
\begin{verbatim}
Fri, 09 Nov 2001 01:08:47 -0000
\end{verbatim}
Optional
\var
{
timeval
}
if given is a floating point time value as
accepted by
\function
{
time.gmtime()
}
and
\function
{
time.localtime()
}
,
otherwise the current time is used.
Optional
\var
{
localtime
}
is a flag that when true, interprets
\var
{
timeval
}
, and returns a date relative to the local timezone
instead of UTC, properly taking daylight savings time into account.
\end{funcdesc}
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