Title: float128s everywhere for dates? · Issue #7139 · matplotlib/matplotlib · GitHub
Open Graph Title: float128s everywhere for dates? · Issue #7139 · matplotlib/matplotlib
X Title: float128s everywhere for dates? · Issue #7139 · matplotlib/matplotlib
Description: The bad roundings that appear in #7138 (loss of microsecond precision for dates around today) make me wonder whether we should just switch to using float128s everywhere for date-related data. Time is encoded as seconds since 0001-01-01 U...
Open Graph Description: The bad roundings that appear in #7138 (loss of microsecond precision for dates around today) make me wonder whether we should just switch to using float128s everywhere for date-related data. Time ...
X Description: The bad roundings that appear in #7138 (loss of microsecond precision for dates around today) make me wonder whether we should just switch to using float128s everywhere for date-related data. Time ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7139
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"float128s everywhere for dates?","articleBody":"The bad roundings that appear in #7138 (loss of microsecond precision for dates around today) make me wonder whether we should just switch to using float128s everywhere for date-related data.\n\nTime is encoded as seconds since 0001-01-01 UTC, so float64s (53 bits) can keep microsecond precision for a timedelta up to 2**53 / 1e6 / 3.154e7 ~ 285 years (3.154e7s/y), which does not go up to today. On the other hand float128s offer 113 bits of precision, i.e. ~3e20 years -- that should be safe, even if we switch to nanosecond precision :-)\n\nOn the other hand I don't actually ever use dates in plots so I don't know if it's really worth it.\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2016-09-19T20:53:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/7139/matplotlib/issues/7139"}
| 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:8839bc27-16bd-b401-a5ef-688d47158397 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA4A:1E68A5:3EEE2:53686:6A52DD1B |
| html-safe-nonce | b9b4f3ce33b545aba27e4185192e603c5d14998823070ecfab6afa34424a9103 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTRBOjFFNjhBNTozRUVFMjo1MzY4Njo2QTUyREQxQiIsInZpc2l0b3JfaWQiOiI4MjQxNDkxNzg2OTE0MjU4MjAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e2ddce62350715f13a7c788f7971d5a96bcfb3354fd3f65a41534a48fd1392bd |
| hovercard-subject-tag | issue:177894966 |
| 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/matplotlib/matplotlib/7139/issue_layout |
| twitter:image | https://opengraph.githubassets.com/13f9483d3e0fef4ff6d75fd113d30b325b69f81c675495055307235111611e53/matplotlib/matplotlib/issues/7139 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/13f9483d3e0fef4ff6d75fd113d30b325b69f81c675495055307235111611e53/matplotlib/matplotlib/issues/7139 |
| og:image:alt | The bad roundings that appear in #7138 (loss of microsecond precision for dates around today) make me wonder whether we should just switch to using float128s everywhere for date-related data. Time ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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