Skip to content
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

added tm_gmtoff and tm_zone attributes to PyStructTime #5017

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bobby-palmer
Copy link
Contributor

This was attempting to solve #4982 but I'm currently stuck with trying to get the timezone abbreviation for the system. any help would be appreciated

@@ -325,6 +326,8 @@ mod time {
tm_wday: PyObjectRef,
tm_yday: PyObjectRef,
tm_isdst: PyObjectRef,
tm_gmtoff: PyObjectRef,
Copy link
Member

Choose a reason for hiding this comment

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

okay, now I see what you were talking about in the other pr, I missed this one, sorry!

Yeah, these should be objects here, not options. The distinction between naive/aware is done based on their value (it being None or not), that's what I've understood by quickly looking into this. I'd need some more time to get a better view of this.

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.

None yet

2 participants