Title: Fix naturaldelta truncating years instead of rounding by ArmaanjeetSandhu · Pull Request #295 · python-humanize/humanize · GitHub
Open Graph Title: Fix naturaldelta truncating years instead of rounding by ArmaanjeetSandhu · Pull Request #295 · python-humanize/humanize
X Title: Fix naturaldelta truncating years instead of rounding by ArmaanjeetSandhu · Pull Request #295 · python-humanize/humanize
Description: Python humanize functions. Contribute to python-humanize/humanize development by creating an account on GitHub.
Open Graph Description: Modified naturaldelta in src/humanize/time.py to use round() instead of integer division (//) for year calculations. This fixes a bug where 2.9 years was incorrectly formatted as "2 years"...
X Description: Modified naturaldelta in src/humanize/time.py to use round() instead of integer division (//) for year calculations. This fixes a bug where 2.9 years was incorrectly formatted as "2 years&...
Opengraph URL: https://github.com/python-humanize/humanize/pull/295
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:661235f3-f396-bb62-e3aa-c921f5527e26 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D198:6CD0B:F8577F:1550783:6A53B9A1 |
| html-safe-nonce | 832b500c75d28f0b07007c1883f2e3198909f0b9b6da89de005d65905d5bcce2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTk4OjZDRDBCOkY4NTc3RjoxNTUwNzgzOjZBNTNCOUExIiwidmlzaXRvcl9pZCI6IjI3MzYyOTU2MzI4MTM5MzA5MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 07a463d015d6f364df3c6ae91e5806fbb08158f3ae705ab9dc4fb5e99cfd284e |
| hovercard-subject-tag | pull_request:3292733536 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/voltron/pull_requests/show/python-humanize/humanize/295/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/f48bb44b1cfed276e724a62acd287248cd312a1b703373906fc8713f410195d0/python-humanize/humanize/pull/295 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f48bb44b1cfed276e724a62acd287248cd312a1b703373906fc8713f410195d0/python-humanize/humanize/pull/295 |
| og:image:alt | Modified naturaldelta in src/humanize/time.py to use round() instead of integer division (//) for year calculations. This fixes a bug where 2.9 years was incorrectly formatted as "2 years"... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ArmaanjeetSandhu |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| go-import | github.com/python-humanize/humanize git https://github.com/python-humanize/humanize.git |
| octolytics-dimension-user_id | 62149795 |
| octolytics-dimension-user_login | python-humanize |
| octolytics-dimension-repository_id | 466683324 |
| octolytics-dimension-repository_nwo | python-humanize/humanize |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 466683324 |
| octolytics-dimension-repository_network_root_nwo | python-humanize/humanize |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width