Title: Durations of full days have 0 total_seconds (PyPy) · Issue #876 · python-pendulum/pendulum · GitHub
Open Graph Title: Durations of full days have 0 total_seconds (PyPy) · Issue #876 · python-pendulum/pendulum
X Title: Durations of full days have 0 total_seconds (PyPy) · Issue #876 · python-pendulum/pendulum
Description: I am on the latest Pendulum version. I have searched the issues of this repo and believe that this is not a duplicate. OS version and name: OS X 15.2 Sequoia Pendulum version: 3.0.0 (and also installing from git) Python version: 3.10.14 ...
Open Graph Description: I am on the latest Pendulum version. I have searched the issues of this repo and believe that this is not a duplicate. OS version and name: OS X 15.2 Sequoia Pendulum version: 3.0.0 (and also insta...
X Description: I am on the latest Pendulum version. I have searched the issues of this repo and believe that this is not a duplicate. OS version and name: OS X 15.2 Sequoia Pendulum version: 3.0.0 (and also insta...
Opengraph URL: https://github.com/python-pendulum/pendulum/issues/876
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Durations of full days have 0 total_seconds (PyPy)","articleBody":"- [x] I am on the [latest](https://github.com/sdispater/pendulum/releases/latest) Pendulum version.\n- [x] I have searched the [issues](https://github.com/sdispater/pendulum/issues) of this repo and believe that this is not a duplicate.\n\n\u003c!--\n Once those are done, if you're able to fill in the following list with your information,\n it'd be very helpful to whoever handles the issue.\n-->\n\n- **OS version and name**: OS X 15.2 Sequoia\n- **Pendulum version**: 3.0.0 (and also installing from git)\n- **Python version**: 3.10.14 (PyPy 7.3.17)\n\n## Issue\n\nThere is an issue with durations of full days with the latest Pendulum version and PyPy.\n\nHere is a reproducer in ipython:\n\n```py\n> ipython\nPython 3.10.14 (39dc8d3c85a7, Aug 27 2024, 20:40:24)\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.31.0 -- An enhanced Interactive Python. Type '?' for help.\n\nIn [1]: from pendulum import duration\n\nIn [2]: duration(days=1)\nOut[2]: Duration()\n\nIn [3]: duration(hours=23)\nOut[3]: Duration(hours=23)\n\nIn [4]: duration(minutes=24*60)\nOut[4]: Duration()\n\nIn [5]: duration(seconds=24*60*60)\nOut[5]: Duration()\n\nIn [6]: duration(days=1).total_seconds()\nOut[6]: 0.0\n\nIn [7]: duration(days=2).total_seconds()\nOut[7]: 0.0\n\nIn [8]: duration(days=2, minutes=1).total_seconds()\nOut[8]: 60.0\n\n# there is no problem with the native timedelta of pypy\nIn [8]: from datetime import timedelta\n\nIn [9]: timedelta(days=1).total_seconds()\nOut[9]: 86400.0\n```\n","author":{"url":"https://github.com/tammoippen","@type":"Person","name":"tammoippen"},"datePublished":"2025-01-22T16:18:28Z","url":"https://github.com/python-pendulum/pendulum/issues/876"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8d60b61e-2eb0-db2a-598a-d41d051be592 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8B8:E046C:11B621:191C86:6B04649D |
| html-safe-nonce | da3effb8847118a55e450b371d4cb1daa13008f3553be680c533ad300c8d3660 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEI4OkUwNDZDOjExQjYyMToxOTFDODY6NkIwNDY0OUQiLCJ2aXNpdG9yX2lkIjoiNzExMzI3MzYxMTM1NTcxMDYyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5cdcf88132343e8f1939a0b380b2412bfa5525c6f9c60bf850d32fde1606c717 |
| hovercard-subject-tag | issue:2804808815 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-pendulum/pendulum/876/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5155995ee83792d70775b022beaaa8415a87d6b5dbe255f00d8138e457096df4/python-pendulum/pendulum/issues/876 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5155995ee83792d70775b022beaaa8415a87d6b5dbe255f00d8138e457096df4/python-pendulum/pendulum/issues/876 |
| og:image:alt | I am on the latest Pendulum version. I have searched the issues of this repo and believe that this is not a duplicate. OS version and name: OS X 15.2 Sequoia Pendulum version: 3.0.0 (and also insta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tammoippen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-pendulum/pendulum git https://github.com/python-pendulum/pendulum.git |
| octolytics-dimension-user_id | 191041900 |
| octolytics-dimension-user_login | python-pendulum |
| octolytics-dimension-repository_id | 62095504 |
| octolytics-dimension-repository_nwo | python-pendulum/pendulum |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 62095504 |
| octolytics-dimension-repository_network_root_nwo | python-pendulum/pendulum |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 03e114520787ad27289207f153520ef97461127c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width