René's URL Explorer Experiment


Title: Use 64-bit Windows CRT and FILETIME timestamps by youknowdot · Pull Request #9116 · RustPython/RustPython · GitHub

Open Graph Title: Use 64-bit Windows CRT and FILETIME timestamps by youknowdot · Pull Request #9116 · RustPython/RustPython

X Title: Use 64-bit Windows CRT and FILETIME timestamps by youknowdot · Pull Request #9116 · RustPython/RustPython

Description: Summary Split the Windows timestamp-width correction out of #8954, preserving current main's negative FILETIME fallback and historical timezone-offset handling. Use libc::time64_t consistently for explicit _gmtime64_s, _localtime64_s, _mktime64, and _time64 calls and their VM/datetime consumers. libc 0.2.189 can define time_t as i32 on x86 Windows GNU. Preserve 64-bit seconds through Windows FILETIME stat conversion helpers and all four timestamp fields, removing narrowing casts in the stat/scandir producers. Add bounded Windows-only 2040 regressions for integer/float UTC calendar conversions and stat/fstat/scandir timestamps on one temporary file. Existing tests, nanosecond handling, error mapping, musl annotations, and datetime fold probing remain intact. No Lib changes, pytime migration, profiler/sleep changes, or os.utime implementation changes. Validation Rebased without patch changes onto main 016ed92f9 (including #9117) after the previous head encountered the shared malachite 0.13/0.14 example-build failure. Current head: a94fc72537124b75c8168f121e14c04384f78e35. git range-diff confirms the same eight-file patch; no #9118 changes were cherry-picked. Both Windows host_env compile checks were rerun successfully after rebase. Linux check/Clippy results below belong to the pre-rebase head 399379064; full Linux checks were not repeated for this patch-identical rebase. Passed independent source review, cargo fmt --all --check, git diff --check, and normal repository commit hooks. Passed cargo check --locked -p rustpython-host_env --no-default-features for both i686-pc-windows-gnu and x86_64-pc-windows-gnu, using official stable rustup targets. The same i686 check on base 28393e932 reproduced four timestamp-width compile errors; all four are resolved by this split. Passed Linux cargo check --locked -p rustpython-host_env -p rustpython-vm -p rustpython-stdlib with default package features. Passed Linux cargo clippy --locked -p rustpython-host_env -p rustpython-vm -p rustpython-stdlib with no warnings. Windows checks above are compile-only: no Windows linking or runtime testing was performed, and the new Windows-gated regressions have not run locally. Full Windows VM/stdlib cross-compilation requires a C/assembly toolchain for mandatory dependencies that is not installed here. Linux checks do not validate Windows-only code. Full workspace/C-API tests and Python regression suites were not run locally. Keeping this draft pending Windows CI/runtime validation. Exact source comparison with #9110 head efaf621d found no overlapping nt.rs hunks; no changes were imported from that PR. AI assistance OpenAI Codex implemented and independently source-reviewed this split, prepared regression tests, and performed the automated checks listed above. No human manual testing is claimed.

Open Graph Description: Summary Split the Windows timestamp-width correction out of #8954, preserving current main's negative FILETIME fallback and historical timezone-offset handling. Use libc::time64_t consistently...

X Description: Summary Split the Windows timestamp-width correction out of #8954, preserving current main's negative FILETIME fallback and historical timezone-offset handling. Use libc::time64_t consiste...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9116

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:64dc3479-0924-6eb3-654d-c4d06c14a932
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE24C:EAD6D:48A19:5977A:6B01FA73
html-safe-nonce23eccfd55287b13d9b8375b144ebc5a8081c8deba29474ca1abc1b27bdc0d78c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjRDOkVBRDZEOjQ4QTE5OjU5NzdBOjZCMDFGQTczIiwidmlzaXRvcl9pZCI6Ijc0MzMxNjMyOTA5NTc3MDc4OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac660751360bf4cd284edca46b2e83f17f141dc155b2282f7f9663ef18de6a76c5
hovercard-subject-tagpull_request:4857054316
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9116/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altSummary Split the Windows timestamp-width correction out of #8954, preserving current main's negative FILETIME fallback and historical timezone-offset handling. Use libc::time64_t consistently...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9116/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9116%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9116%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9116/files
Reloadhttps://github.com/RustPython/RustPython/pull/9116/files
Reloadhttps://github.com/RustPython/RustPython/pull/9116/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:fix/windows-crt-time64https://github.com/youknowdot/RustPython/tree/fix/windows-crt-time64
Conversation 5 https://github.com/RustPython/RustPython/pull/9116
Commits 1 https://github.com/RustPython/RustPython/pull/9116/commits
Checks 29 https://github.com/RustPython/RustPython/pull/9116/checks
Files changed https://github.com/RustPython/RustPython/pull/9116/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9116/files
Use 64-bit Windows CRT and FILETIME timestamps https://github.com/RustPython/RustPython/pull/9116/files#top
Show all changes 1 commit https://github.com/RustPython/RustPython/pull/9116/files
a94fc72 Use 64-bit timestamps for Windows CRT and FILETIME conversions youknowdot Oct 14, 2026 https://github.com/RustPython/RustPython/pull/9116/commits/a94fc72537124b75c8168f121e14c04384f78e35
Clear filters https://github.com/RustPython/RustPython/pull/9116/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9116/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9116/files
fileutils.rs https://github.com/RustPython/RustPython/pull/9116/files#diff-70d1bf37d9d92575484e3b8b9c47cfb1c5874a1bf545def2c971b0ff318a5749
nt.rs https://github.com/RustPython/RustPython/pull/9116/files#diff-3df76f567fd36f94f81724208d27173956cfd5ab3b89ae4ce94f5e2c28a61ce8
time.rs https://github.com/RustPython/RustPython/pull/9116/files#diff-bd342e29a0e1c4ecbcaacdca9224f2414102b7ca0e287855ab3c4b00e04bd5eb
_datetime.rs https://github.com/RustPython/RustPython/pull/9116/files#diff-4865bbb0fcf7b487d15d3faf72a601772d080bf4ad864b1f4a7ad62be464a8a9
time.rs https://github.com/RustPython/RustPython/pull/9116/files#diff-1b1beeed0db11c1262967da108e5e037aed82af263bb55882f24b1556bf8f9a5
stdlib_datetime.py https://github.com/RustPython/RustPython/pull/9116/files#diff-c682c5ce94293e5d6632bda89ae696ff23f948c0603568887abb10b020b9ec6e
stdlib_os.py https://github.com/RustPython/RustPython/pull/9116/files#diff-4c445fa6cef3356957ef3018698f8e697672ec3e3b68eb58f431f19af2c9923a
stdlib_time.py https://github.com/RustPython/RustPython/pull/9116/files#diff-31d5f7d2cf83df88e8b6c92f81f21d89c42f091432eea3a4d684a936997f4a0d
crates/host_env/src/fileutils.rshttps://github.com/RustPython/RustPython/pull/9116/files#diff-70d1bf37d9d92575484e3b8b9c47cfb1c5874a1bf545def2c971b0ff318a5749
View file https://github.com/youknowdot/RustPython/blob/a94fc72537124b75c8168f121e14c04384f78e35/crates/host_env/src/fileutils.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9116/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9116/files#diff-70d1bf37d9d92575484e3b8b9c47cfb1c5874a1bf545def2c971b0ff318a5749
https://github.com/RustPython/RustPython/pull/9116/files#diff-70d1bf37d9d92575484e3b8b9c47cfb1c5874a1bf545def2c971b0ff318a5749
https://github.com/RustPython/RustPython/pull/9116/files#diff-70d1bf37d9d92575484e3b8b9c47cfb1c5874a1bf545def2c971b0ff318a5749
https://github.com/RustPython/RustPython/pull/9116/files#diff-70d1bf37d9d92575484e3b8b9c47cfb1c5874a1bf545def2c971b0ff318a5749
crates/host_env/src/nt.rshttps://github.com/RustPython/RustPython/pull/9116/files#diff-3df76f567fd36f94f81724208d27173956cfd5ab3b89ae4ce94f5e2c28a61ce8
View file https://github.com/youknowdot/RustPython/blob/a94fc72537124b75c8168f121e14c04384f78e35/crates/host_env/src/nt.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9116/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9116/files#diff-3df76f567fd36f94f81724208d27173956cfd5ab3b89ae4ce94f5e2c28a61ce8
https://github.com/RustPython/RustPython/pull/9116/files#diff-3df76f567fd36f94f81724208d27173956cfd5ab3b89ae4ce94f5e2c28a61ce8
https://github.com/RustPython/RustPython/pull/9116/files#diff-3df76f567fd36f94f81724208d27173956cfd5ab3b89ae4ce94f5e2c28a61ce8
https://github.com/RustPython/RustPython/pull/9116/files#diff-3df76f567fd36f94f81724208d27173956cfd5ab3b89ae4ce94f5e2c28a61ce8
crates/host_env/src/time.rshttps://github.com/RustPython/RustPython/pull/9116/files#diff-bd342e29a0e1c4ecbcaacdca9224f2414102b7ca0e287855ab3c4b00e04bd5eb
View file https://github.com/youknowdot/RustPython/blob/a94fc72537124b75c8168f121e14c04384f78e35/crates/host_env/src/time.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9116/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9116/files#diff-bd342e29a0e1c4ecbcaacdca9224f2414102b7ca0e287855ab3c4b00e04bd5eb
https://github.com/RustPython/RustPython/pull/9116/files#diff-bd342e29a0e1c4ecbcaacdca9224f2414102b7ca0e287855ab3c4b00e04bd5eb
https://github.com/RustPython/RustPython/pull/9116/files#diff-bd342e29a0e1c4ecbcaacdca9224f2414102b7ca0e287855ab3c4b00e04bd5eb
https://github.com/RustPython/RustPython/pull/9116/files#diff-bd342e29a0e1c4ecbcaacdca9224f2414102b7ca0e287855ab3c4b00e04bd5eb
crates/stdlib/src/_datetime.rshttps://github.com/RustPython/RustPython/pull/9116/files#diff-4865bbb0fcf7b487d15d3faf72a601772d080bf4ad864b1f4a7ad62be464a8a9
View file https://github.com/youknowdot/RustPython/blob/a94fc72537124b75c8168f121e14c04384f78e35/crates/stdlib/src/_datetime.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9116/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9116/files#diff-4865bbb0fcf7b487d15d3faf72a601772d080bf4ad864b1f4a7ad62be464a8a9
https://github.com/RustPython/RustPython/pull/9116/files#diff-4865bbb0fcf7b487d15d3faf72a601772d080bf4ad864b1f4a7ad62be464a8a9
crates/vm/src/stdlib/time.rshttps://github.com/RustPython/RustPython/pull/9116/files#diff-1b1beeed0db11c1262967da108e5e037aed82af263bb55882f24b1556bf8f9a5
View file https://github.com/youknowdot/RustPython/blob/a94fc72537124b75c8168f121e14c04384f78e35/crates/vm/src/stdlib/time.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9116/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9116/files#diff-1b1beeed0db11c1262967da108e5e037aed82af263bb55882f24b1556bf8f9a5
https://github.com/RustPython/RustPython/pull/9116/files#diff-1b1beeed0db11c1262967da108e5e037aed82af263bb55882f24b1556bf8f9a5
extra_tests/snippets/stdlib_datetime.pyhttps://github.com/RustPython/RustPython/pull/9116/files#diff-c682c5ce94293e5d6632bda89ae696ff23f948c0603568887abb10b020b9ec6e
View file https://github.com/youknowdot/RustPython/blob/a94fc72537124b75c8168f121e14c04384f78e35/extra_tests/snippets/stdlib_datetime.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9116/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9116/files#diff-c682c5ce94293e5d6632bda89ae696ff23f948c0603568887abb10b020b9ec6e
https://github.com/RustPython/RustPython/pull/9116/files#diff-c682c5ce94293e5d6632bda89ae696ff23f948c0603568887abb10b020b9ec6e
https://github.com/RustPython/RustPython/pull/9116/files#diff-c682c5ce94293e5d6632bda89ae696ff23f948c0603568887abb10b020b9ec6e
https://github.com/RustPython/RustPython/pull/9116/files#diff-c682c5ce94293e5d6632bda89ae696ff23f948c0603568887abb10b020b9ec6e
extra_tests/snippets/stdlib_os.pyhttps://github.com/RustPython/RustPython/pull/9116/files#diff-4c445fa6cef3356957ef3018698f8e697672ec3e3b68eb58f431f19af2c9923a
View file https://github.com/youknowdot/RustPython/blob/a94fc72537124b75c8168f121e14c04384f78e35/extra_tests/snippets/stdlib_os.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9116/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9116/files#diff-4c445fa6cef3356957ef3018698f8e697672ec3e3b68eb58f431f19af2c9923a
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 14, 2026https://github.com/RustPython/RustPython/pull/9116/files#r4273207940
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/a08bbb8a949f7033433a88444eeae385ff6a5e599d92f878fb05fa85707b7816/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50312d6f72616e67653f7374796c653d666c6174
AGENTS.md:L275-L279https://github.com/RustPython/RustPython/blob/a94fc72537124b75c8168f121e14c04384f78e35/AGENTS.md#L275-L279
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9116/files
https://github.com/RustPython/RustPython/pull/9116/files#diff-4c445fa6cef3356957ef3018698f8e697672ec3e3b68eb58f431f19af2c9923a
extra_tests/snippets/stdlib_time.pyhttps://github.com/RustPython/RustPython/pull/9116/files#diff-31d5f7d2cf83df88e8b6c92f81f21d89c42f091432eea3a4d684a936997f4a0d
View file https://github.com/youknowdot/RustPython/blob/a94fc72537124b75c8168f121e14c04384f78e35/extra_tests/snippets/stdlib_time.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9116/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9116/files#diff-31d5f7d2cf83df88e8b6c92f81f21d89c42f091432eea3a4d684a936997f4a0d
https://github.com/RustPython/RustPython/pull/9116/files#diff-31d5f7d2cf83df88e8b6c92f81f21d89c42f091432eea3a4d684a936997f4a0d
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9116/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.