Skip to content

Add datetime.UTC alias for datetime.timezone.utc #4154

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
Oct 2, 2022

Conversation

jopemachine
Copy link
Contributor

@jopemachine jopemachine commented Sep 9, 2022

Added UTC alias added in cpython 3.11

By the way, It seems maybe the Lib/test/datetimetester.py tests are missing, I'm wondering if this is intended.

Manual test

>>>>> datetime.UTC
datetime.timezone.utc

Related links

  • Python codes are copy-pasted from CPython.

@youknowone youknowone added the z-ca-2022 Tag to track contrubution-academy 2022 label Sep 16, 2022
@jopemachine jopemachine marked this pull request as ready for review September 21, 2022 04:18
Copy link
Member

@youknowone youknowone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we usually don't partially update python library. but datetime looks hard to work on right now.

@youknowone youknowone merged commit 02e0131 into RustPython:main Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
z-ca-2022 Tag to track contrubution-academy 2022
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants