Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

gh-80620: Support negative values infromtimestamp on Windows using 0 +timedelta#134461

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jhohm wants to merge14 commits intopython:main
base:main
Choose a base branch
Loading
fromjhohm:gh-80620
Open
Changes from1 commit
Commits
Show all changes
14 commits
Select commitHold shift + click to select a range
6704876
Support negative values in `fromtimestamp` on Windows using 0 + `time…
jhohmMay 21, 2025
a3e5749
Fixes from actually building on Windows.
jhohmMay 21, 2025
7453c3c
Support negative integer timestamps too; skip tests that would genera…
jhohmMay 21, 2025
15c5520
Avoid double-adding microseconds in _pydatetime datetime.fromtimestamp.
jhohmMay 21, 2025
329db66
Untabify _datetimemodule.c
jhohmMay 21, 2025
34c999f
Free intermediate objects in _datetimemodule.
jhohmMay 21, 2025
0dd521f
Reorder initialization to be consistent between added code.
jhohmMay 21, 2025
44bcfd9
Handle all errors; switch to more common os.name == 'nt' check
jhohmMay 22, 2025
e675d63
Explain in news that negative timestamps are dates before the epoch.
jhohmMay 22, 2025
02082f7
Fix OS check to import os.
jhohmMay 22, 2025
cb2f911
Untabify; copy error handling code instead of goto.
jhohmMay 22, 2025
057dd79
No need to XDECREF non-NULL objects.
jhohmMay 22, 2025
5d9db9d
Reuse `fromtimestamp` for 0 values, and `timedelta()` instead of cast…
jhohmMay 22, 2025
77a8b11
Merge branch 'main' into gh-80620
jhohmMay 22, 2025
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
PrevPrevious commit
NextNext commit
Fix OS check to import os.
  • Loading branch information
@jhohm
jhohm committedMay 22, 2025
commit02082f720d731beab0c3ff6d7789ec5341affbd3
2 changes: 1 addition & 1 deletionLib/_pydatetime.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,7 +8,7 @@

import time as _time
import math as _math
importsys
importos
from operator import index as _index

def _cmp(x, y):
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp