René's URL Explorer Experiment


Title: gh-81708: Fixing the "Invalid argument" bug on `datetime.timestamp()` by pingchaoc · Pull Request #15498 · python/cpython · GitHub

Open Graph Title: gh-81708: Fixing the "Invalid argument" bug on `datetime.timestamp()` by pingchaoc · Pull Request #15498 · python/cpython

X Title: gh-81708: Fixing the "Invalid argument" bug on `datetime.timestamp()` by pingchaoc · Pull Request #15498 · python/cpython

Description: Fixing the "Invalid argument" bug on datetime.timestamp() I found a bug in the Python built-in library datetime. In the Windows os, from Python 3.6 to the latest version, datetime.timestamp() will ...

Open Graph Description: Fixing the "Invalid argument" bug on datetime.timestamp() I found a bug in the Python built-in library datetime. In the Windows os, from Python 3.6 to the latest version, datetime.timesta...

X Description: Fixing the "Invalid argument" bug on datetime.timestamp() I found a bug in the Python built-in library datetime. In the Windows os, from Python 3.6 to the latest version, datetime...

Opengraph URL: https://github.com/python/cpython/pull/15498

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:9e400ed8-d8c2-cb37-d5f6-30aa4efea884
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC6E4:8D142:1773A41:1F200D0:696AE48E
html-safe-noncebfb771139b404a06d8310c74e3098bdef6990fe9b451ca0d73ff3b5bb2d81347
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkU0OjhEMTQyOjE3NzNBNDE6MUYyMDBEMDo2OTZBRTQ4RSIsInZpc2l0b3JfaWQiOiIyNDc0MjM3MDM5Mjk3MDk0Nzk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5f64f59659bf6e0c52a08404deae8c334f2c5d59d0bcac7d83c4ba26a7621366
hovercard-subject-tagpull_request:310743416
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/15498/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cd19be6f50ae8144cf7ca3d38e9d9ed05fde1eb99109b518090fc0ec73013fcb/python/cpython/pull/15498
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cd19be6f50ae8144cf7ca3d38e9d9ed05fde1eb99109b518090fc0ec73013fcb/python/cpython/pull/15498
og:image:altFixing the "Invalid argument" bug on datetime.timestamp() I found a bug in the Python built-in library datetime. In the Windows os, from Python 3.6 to the latest version, datetime.timesta...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepingchaoc
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3d84d50b3c75fa36755c3cf392edbc09e626f979
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/15498#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F15498
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F15498
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/15498
Reloadhttps://github.com/python/cpython/pull/15498
Reloadhttps://github.com/python/cpython/pull/15498
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/15498
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/15498
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/15498#issue-comment-box
pingchaochttps://github.com/pingchaoc
python:mainhttps://github.com/python/cpython/tree/main
pingchaoc:masterhttps://github.com/pingchaoc/cpython/tree/master
gh-81708: Fixing the "Invalid argument" bug on datetime.timestamp() https://github.com/python/cpython/pull/15498#top
pingchaochttps://github.com/pingchaoc
python:mainhttps://github.com/python/cpython/tree/main
pingchaoc:masterhttps://github.com/pingchaoc/cpython/tree/master
Conversation 11 https://github.com/python/cpython/pull/15498
Commits 4 https://github.com/python/cpython/pull/15498/commits
Checks 0 https://github.com/python/cpython/pull/15498/checks
Files changed https://github.com/python/cpython/pull/15498/files
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/pingchaoc
pingchaochttps://github.com/pingchaoc
Aug 26, 2019https://github.com/python/cpython/pull/15498#issue-485017058
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://bugs.python.org/issue37527https://bugs.python.org/issue37527
Timestamp conversion on windows fails with timestamps close to EPOCH #81708https://github.com/python/cpython/issues/81708
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.com/pingchaoc
fixing the bug on datetime.timestamp()https://github.com/python/cpython/pull/15498/commits/a676951568213938920bb68f24afc4f7c6a33172
a676951https://github.com/python/cpython/pull/15498/commits/a676951568213938920bb68f24afc4f7c6a33172
https://github.com/pingchaoc
pingchaochttps://github.com/pingchaoc
abalkinhttps://github.com/abalkin
pgansslehttps://github.com/pganssle
code ownershttps://github.com/python/cpython/blob/da27d9b9dc44913ffee8f28d9638985eaaa03755/.github/CODEOWNERS#L47
August 26, 2019 02:49https://github.com/python/cpython/pull/15498#event-2582352143
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA not signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20not%20signed%22
Aug 26, 2019https://github.com/python/cpython/pull/15498#event-2582352198
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
Aug 26, 2019https://github.com/python/cpython/pull/15498#issuecomment-524695997
PSF contributor agreementhttps://www.python.org/psf/contrib/contrib-form/
bugs.python.orghttps://bugs.python.org/
the steps outlined in the CPython devguidehttps://devguide.python.org/pullrequest/#licensing
check yourselfhttps://check-python-cla.herokuapp.com/
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Aug 26, 2019https://github.com/python/cpython/pull/15498#event-2582352226
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
CLA not signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20not%20signed%22
Aug 27, 2019https://github.com/python/cpython/pull/15498#event-2585992406
https://github.com/ammaraskar
ammaraskarhttps://github.com/ammaraskar
Aug 31, 2019https://github.com/python/cpython/pull/15498#issuecomment-526858119
guide herehttps://devguide.python.org/pullrequest/#making-good-commits
https://bugs.python.org/issue37527https://bugs.python.org/issue37527
cpython/Modules/_datetimemodule.chttps://github.com/python/cpython/blob/c5b242f87f31286ad38991bc3868cf4cfbf2b681/Modules/_datetimemodule.c#L6044
c5b242fhttps://github.com/python/cpython/commit/c5b242f87f31286ad38991bc3868cf4cfbf2b681
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.com/pingchaoc
The test for datetime.timestamp() near the epochhttps://github.com/python/cpython/pull/15498/commits/a5413324535a76b5b1b692655d37e73f03774008
a541332https://github.com/python/cpython/pull/15498/commits/a5413324535a76b5b1b692655d37e73f03774008
https://github.com/pingchaoc
pingchaochttps://github.com/pingchaoc
Sep 7, 2019https://github.com/python/cpython/pull/15498#issuecomment-529110109
guide herehttps://devguide.python.org/pullrequest/#making-good-commits
https://bugs.python.org/issue37527https://bugs.python.org/issue37527
cpython/Modules/_datetimemodule.chttps://github.com/python/cpython/blob/c5b242f87f31286ad38991bc3868cf4cfbf2b681/Modules/_datetimemodule.c#L6044
c5b242fhttps://github.com/python/cpython/commit/c5b242f87f31286ad38991bc3868cf4cfbf2b681
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.com/csabella
csabellahttps://github.com/csabella
Jan 10, 2020https://github.com/python/cpython/pull/15498#event-2938358583
https://github.com/csabella
csabellahttps://github.com/csabella
May 28, 2020https://github.com/python/cpython/pull/15498#issuecomment-635658122
@pingchaochttps://github.com/pingchaoc
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.com/csabella
csabellahttps://github.com/csabella
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
May 28, 2020https://github.com/python/cpython/pull/15498#event-3384977563
https://github.com/seljasen
seljasenhttps://github.com/seljasen
Oct 4, 2020https://github.com/python/cpython/pull/15498#issuecomment-703329608
I have encountered the bug today and would be very happy to get a new pach. https://stackoverflow.com/questions/64200556/how-do-i-convert-a-pre-1970-date-to-epoch-in-python
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.com/ammaraskar
ammaraskarhttps://github.com/ammaraskar
Oct 6, 2020https://github.com/python/cpython/pull/15498#issuecomment-704331163
@seljasenhttps://github.com/seljasen
@pingchaochttps://github.com/pingchaoc
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.com/Wouter1
Wouter1https://github.com/Wouter1
Jul 20, 2021https://github.com/python/cpython/pull/15498#issuecomment-883160386
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.com/python/cpython/pull/15498
Dschonihttps://github.com/python/cpython/pull/15498
Apr 10, 2022 https://github.com/python/cpython/pull/15498#ref-issue-1199015801
Timestamp conversion on windows fails with timestamps close to EPOCH #81708 https://github.com/python/cpython/issues/81708
https://github.com/ezio-melotti
ezio-melottihttps://github.com/ezio-melotti
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Jul 13, 2022https://github.com/python/cpython/pull/15498#event-6988864385
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Jul 30, 2022https://github.com/python/cpython/pull/15498#event-7092789481
https://github.com/arhadthedev
arhadthedevhttps://github.com/arhadthedev
stdlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astdlib
Mar 22, 2023https://github.com/python/cpython/pull/15498#event-8813631001
https://github.com/arhadthedev
arhadthedevhttps://github.com/arhadthedev
Mar 22, 2023https://github.com/python/cpython/pull/15498#event-8813636360
https://github.com/arhadthedev
Merge branch 'main' into masterhttps://github.com/python/cpython/pull/15498/commits/827adc04727bf276f192e1a14f5e94d1de58cc43
827adc0https://github.com/python/cpython/pull/15498/commits/827adc04727bf276f192e1a14f5e94d1de58cc43
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Mar 22, 2023https://github.com/python/cpython/pull/15498#issuecomment-1479085259
require a NEWS entryhttps://devguide.python.org/committing/#updating-news-and-what-s-new-in-python
blurb_ithttps://blurb-it.herokuapp.com
blurbhttps://pypi.org/project/blurb/
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.com/arhadthedev
arhadthedevhttps://github.com/arhadthedev
Mar 22, 2023https://github.com/python/cpython/pull/15498#issuecomment-1479086392
gh-94414https://github.com/python/cpython/issues/94414
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.com/arhadthedev
arhadthedevhttps://github.com/arhadthedev
March 22, 2023 08:23https://github.com/python/cpython/pull/15498#event-8813699886
https://github.com/arhadthedev
Add a news entryhttps://github.com/python/cpython/pull/15498/commits/d26d03c0745d22f39020308e98b2ac1484e49527
d26d03chttps://github.com/python/cpython/pull/15498/commits/d26d03c0745d22f39020308e98b2ac1484e49527
https://github.com/arhadthedev
arhadthedevhttps://github.com/arhadthedev
Mar 23, 2023https://github.com/python/cpython/pull/15498#issuecomment-1480565813
@abalkinhttps://github.com/abalkin
@pgansslehttps://github.com/pganssle
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.com/arhadthedev
arhadthedevhttps://github.com/arhadthedev
March 23, 2023 03:58https://github.com/python/cpython/pull/15498#event-8823061581
https://github.com/arhadthedev
arhadthedevhttps://github.com/arhadthedev
DO-NOT-MERGE https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE
Mar 23, 2023https://github.com/python/cpython/pull/15498#event-8823062016
https://github.com/victorjacobemarsys
victorjacobemarsyshttps://github.com/victorjacobemarsys
Oct 23, 2023 https://github.com/python/cpython/pull/15498#ref-pullrequest-1957414294
fix: Set From Date based on OS emartech/loyalty-contact-migration-verifier#11 https://github.com/emartech/loyalty-contact-migration-verifier/pull/11
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Aug 29, 2025https://github.com/python/cpython/pull/15498#issuecomment-3238019047
devguidehttps://devguide.python.org/getting-started/
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Aug 29, 2025https://github.com/python/cpython/pull/15498#event-19417444236
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
CPython pull requests to have finally mergedhttps://github.com/users/arhadthedev/projects/9
Aug 29, 2025https://github.com/python/cpython/pull/15498#event-19417444784
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F15498
https://github.com/abalkin
abalkin https://github.com/abalkin
https://github.com/pganssle
pganssle https://github.com/pganssle
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
DO-NOT-MERGE https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE
stdlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astdlib
Please reload this pagehttps://github.com/python/cpython/pull/15498
https://github.com/pingchaoc
https://github.com/the-knights-who-say-ni
https://github.com/ammaraskar
https://github.com/csabella
https://github.com/seljasen
https://github.com/Wouter1
https://github.com/bedevere-bot
https://github.com/arhadthedev
https://github.com/StanFromIreland
https://github.com/ezio-melotti
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.