gh-80620: Support negative timestamps on windows in `time.gmtime`, `time.localtime`, and `datetime` module (#143463)
Previously, negative timestamps (representing dates before 1970-01-01) were not supported on Windows due to platform limitations. The changes introduce a fallback implementation using the Windows FILETIME API, allowing negative timestamps to be correctly handled in both UTC and local time conversions. Additionally, related test code is updated to remove Windows-specific skips and error handling, ensuring consistent behavior across platforms. Co-authored-by: Victor Stinner <vstinner@python.org>
P
Peter Gessler committed
f5685a266b252455e03ef8e6055eaf4007ec749d
Parent: 565685f
Committed by GitHub <noreply@github.com>
on 1/15/2026, 9:51:11 AM