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
8cf94e60
Commit
8cf94e60
authored
Feb 18, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mktime_tz(). Add () to a function reference in parsedate_tz().
parent
00455b77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
Doc/lib/librfc822.tex
Doc/lib/librfc822.tex
+9
-1
Doc/librfc822.tex
Doc/librfc822.tex
+9
-1
No files found.
Doc/lib/librfc822.tex
View file @
8cf94e60
...
@@ -40,13 +40,21 @@ returned.
...
@@ -40,13 +40,21 @@ returned.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
parsedate
_
tz
}{
date
}
\begin{funcdesc}
{
parsedate
_
tz
}{
date
}
Performs the same function as
\code
{
parsedate
}
, but returns either
Performs the same function as
\code
{
parsedate
()
}
, but returns either
\code
{
None
}
or a 10-tuple; the first 9 elements make up a tuple that
\code
{
None
}
or a 10-tuple; the first 9 elements make up a tuple that
can be passed directly to
\code
{
time.mktime()
}
, and the tenth is the
can be passed directly to
\code
{
time.mktime()
}
, and the tenth is the
offset of the date's time zone from UTC (which is the official term
offset of the date's time zone from UTC (which is the official term
for Greenwich Mean Time).
for Greenwich Mean Time).
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
mktime
_
tz
}{
tuple
}
Turn a 10-tuple as returned by
\code
{
parsedate
_
tz()
}
into a UTC timestamp.
Minor deficiency: this first interprets the first 8 elements as a
local time and then compensates for the timezone difference;
this may yield a slight error around daylight savings time
switch dates. Not enough to worry about for common use.
\end{funcdesc}
\subsection
{
Message Objects
}
\subsection
{
Message Objects
}
A
\code
{
Message
}
instance has the following methods:
A
\code
{
Message
}
instance has the following methods:
...
...
Doc/librfc822.tex
View file @
8cf94e60
...
@@ -40,13 +40,21 @@ returned.
...
@@ -40,13 +40,21 @@ returned.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
parsedate
_
tz
}{
date
}
\begin{funcdesc}
{
parsedate
_
tz
}{
date
}
Performs the same function as
\code
{
parsedate
}
, but returns either
Performs the same function as
\code
{
parsedate
()
}
, but returns either
\code
{
None
}
or a 10-tuple; the first 9 elements make up a tuple that
\code
{
None
}
or a 10-tuple; the first 9 elements make up a tuple that
can be passed directly to
\code
{
time.mktime()
}
, and the tenth is the
can be passed directly to
\code
{
time.mktime()
}
, and the tenth is the
offset of the date's time zone from UTC (which is the official term
offset of the date's time zone from UTC (which is the official term
for Greenwich Mean Time).
for Greenwich Mean Time).
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
mktime
_
tz
}{
tuple
}
Turn a 10-tuple as returned by
\code
{
parsedate
_
tz()
}
into a UTC timestamp.
Minor deficiency: this first interprets the first 8 elements as a
local time and then compensates for the timezone difference;
this may yield a slight error around daylight savings time
switch dates. Not enough to worry about for common use.
\end{funcdesc}
\subsection
{
Message Objects
}
\subsection
{
Message Objects
}
A
\code
{
Message
}
instance has the following methods:
A
\code
{
Message
}
instance has the following methods:
...
...
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