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
timestamp() method for datetime objects #43077
Comments
This patch adds a timestamp() method to datetime I pulled out the dstflag calculation code from The patch also includes updates to the datetime |
Logged In: YES I'm against this functionality. It suggests an linkage between the "naive" When you call time.mktime(self.timetuple()), you as the |
Logged In: YES The .fromtimestamp and .utcfromtimestamp class methods What if timestamp() only works if the datetime object isn't |
Logged In: YES Well, that they both exist implies that the linkage is I think it's just not worth the new API given that it's (as There's also the problem that the range for timestamps is |
Logged In: YES I know this is closed...
|
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: