Title: TIME producer does not correct provided timestamp · Issue #563 · canopen-python/canopen · GitHub
Open Graph Title: TIME producer does not correct provided timestamp · Issue #563 · canopen-python/canopen
X Title: TIME producer does not correct provided timestamp · Issue #563 · canopen-python/canopen
Description: The documentation on transmit suggests the provided timestamp should be a UNIX timestamp, so have Epoch Jan 1 1970 UTC. However, the function does not correctly offset the provided timestamp as it does with the one produced internally if...
Open Graph Description: The documentation on transmit suggests the provided timestamp should be a UNIX timestamp, so have Epoch Jan 1 1970 UTC. However, the function does not correctly offset the provided timestamp as it ...
X Description: The documentation on transmit suggests the provided timestamp should be a UNIX timestamp, so have Epoch Jan 1 1970 UTC. However, the function does not correctly offset the provided timestamp as it ...
Opengraph URL: https://github.com/canopen-python/canopen/issues/563
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TIME producer does not correct provided timestamp","articleBody":"The documentation on `transmit` suggests the provided timestamp should be a UNIX timestamp, so have Epoch Jan 1 1970 UTC. However, the function does not correctly offset the provided timestamp as it does with the one produced internally if no timestamp is provided (https://canopen.readthedocs.io/en/latest/_modules/canopen/timestamp.html#TimeProducer.transmit).\n\nEither the documentation should be fixed to say the provided timestamp should use the CANopen epoch or the line correcting the timestamp should be fixed to respect Python operator precedence:\n\n```\ndelta = (timestamp or time.time()) - OFFSET\n```","author":{"url":"https://github.com/mrrosen","@type":"Person","name":"mrrosen"},"datePublished":"2025-02-25T23:09:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/563/canopen/issues/563"}
| 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:a86e769a-9f4e-8c18-cbd5-2fc6fdd259a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7BC:43F78:55383C5:6F206BD:6A5D8AAE |
| html-safe-nonce | 43e3372de3650611c016516a67f01be54954e98567c7d30037c4af813c0c75fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0JDOjQzRjc4OjU1MzgzQzU6NkYyMDZCRDo2QTVEOEFBRSIsInZpc2l0b3JfaWQiOiIzNDA5NDk0NzU1MzE5MzE5MjE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c1b54328dcac43a0c814eaaf1c78a4287fce5d050873a7e8fb688b042f8460f2 |
| hovercard-subject-tag | issue:2879745789 |
| 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/canopen-python/canopen/563/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f56d9495521bd027f405f0c24d5297a68d0c21f190439371feebca55f5b989c/canopen-python/canopen/issues/563 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f56d9495521bd027f405f0c24d5297a68d0c21f190439371feebca55f5b989c/canopen-python/canopen/issues/563 |
| og:image:alt | The documentation on transmit suggests the provided timestamp should be a UNIX timestamp, so have Epoch Jan 1 1970 UTC. However, the function does not correctly offset the provided timestamp as it ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mrrosen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/canopen-python/canopen git https://github.com/canopen-python/canopen.git |
| octolytics-dimension-user_id | 200581454 |
| octolytics-dimension-user_login | canopen-python |
| octolytics-dimension-repository_id | 68737600 |
| octolytics-dimension-repository_nwo | canopen-python/canopen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 68737600 |
| octolytics-dimension-repository_network_root_nwo | canopen-python/canopen |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width