Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-85453: Fix 'time zone' spelling issues across datetime.rst #118449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert timezone occurrence from a code comment
  • Loading branch information
uatach committed Apr 30, 2024
commit 82472f5a24a08a53869b3ef6ab8cef48907445c6
2 changes: 1 addition & 1 deletion 2 Doc/library/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ Instance methods:
def astimezone(self, tz):
if self.tzinfo is tz:
return self
# Convert self to UTC, and attach the new :class:`timezone` object.
# Convert self to UTC, and attach the new timezone object.
utc = (self - self.utcoffset()).replace(tzinfo=tz)
# Convert from UTC to tz's local time.
return tz.fromutc(utc)
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.