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-71587: Establish global state in _datetime #110475

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
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
Apply Victor's suggestions from gh-102995
  • Loading branch information
erlend-aasland committed Oct 6, 2023
commit 2eb3315327f6d1de711fb8bc8309eb8ec236afeb
8 changes: 4 additions & 4 deletions 8 Modules/_datetimemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@

typedef struct {
/* Conversion factors. */
PyObject *us_per_ms; // 1000
PyObject *us_per_second; // 1000000
PyObject *us_per_ms; // 1_000
PyObject *us_per_second; // 1_000_000
PyObject *us_per_minute; // 1e6 * 60 as Python int
PyObject *us_per_hour; // 1e6 * 3600 as Python int
PyObject *us_per_day; // 1e6 * 3600 * 24 as Python int
PyObject *us_per_week; // 1e6*3600*24*7 as Python int
PyObject *seconds_per_day; // 3600*24 as Python int
PyObject *us_per_week; // 1e6 * 3600 * 24 * 7 as Python int
PyObject *seconds_per_day; // 3600 * 24 as Python int

/* The interned UTC timezone instance */
PyObject *PyDateTime_TimeZone_UTC;
erlend-aasland marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.