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
30b418e3
Commit
30b418e3
authored
Dec 27, 2002
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
astimezone(): document that None is an OK argument.
parent
384370c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Doc/lib/libdatetime.tex
Doc/lib/libdatetime.tex
+5
-4
No files found.
Doc/lib/libdatetime.tex
View file @
30b418e3
...
...
@@ -603,8 +603,8 @@ Instance methods:
- astimezone(tz)
Return a
\class
{
datetimetz
}
with the same date and time fields, and
with
\member
{
tzinfo
}
member
\var
{
tz
}
.
\var
{
tz
}
must be
an instance
of a
\class
{
tzinfo
}
subclass.
with
\member
{
tzinfo
}
member
\var
{
tz
}
.
\var
{
tz
}
must be
\code
{
None
}
,
o
r an instance o
f a
\class
{
tzinfo
}
subclass.
- timetuple()
Return a 9-element tuple of the form returned by
...
...
@@ -1096,8 +1096,9 @@ Instance methods:
- astimezone(tz)
Return a
\class
{
datetimetz
}
with new tzinfo member
\var
{
tz
}
.
\var
{
tz
}
must be an instance of a
\class
{
tzinfo
}
subclass. If self is naive, or
if
\code
(tz.utcoffset(self)
}
returns
\code
{
None
}
,
must be
\code
{
None
}
, or an instance of a
\class
{
tzinfo
}
subclass. If
\var
{
tz
}
is
\code
{
None
}
, self is naive, or
\code
(tz.utcoffset(self)
}
returns
\code
{
None
}
,
\code
{
self.astimezone(tz)
}
is equivalent to
\code
{
self.replace(tzinfo=tz)
}
: a new timezone object is attached
without any conversion of date or time fields. If self is aware and
...
...
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