Skip to content

correct utcoffset return type #554

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 18, 2016
Merged

Conversation

samuelcolvin
Copy link
Contributor

import datetime
tz = datetime.timezone(datetime.timedelta(seconds=3600))
dt = datetime.datetime(2016, 1, 1, tzinfo=tz)
print(repr(dt.utcoffset()))
#> datetime.timedelta(0, 3600)

same for datetime.time and python 2.7

samuelcolvin added a commit to python-arq/arq that referenced this pull request Sep 18, 2016
@gvanrossum gvanrossum merged commit 773ad48 into python:master Sep 18, 2016
@gvanrossum
Copy link
Member

Thanks!

seedofjoy pushed a commit to seedofjoy/darq that referenced this pull request Mar 9, 2020
seedofjoy pushed a commit to seedofjoy/darq that referenced this pull request Mar 9, 2020
seedofjoy pushed a commit to seedofjoy/darq that referenced this pull request Mar 9, 2020
hswong3i pushed a commit to alvistack/python-typeshed that referenced this pull request May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants