Title: Can't seem to compare DateTime · Issue #323 · pythonnet/pythonnet · GitHub
Open Graph Title: Can't seem to compare DateTime · Issue #323 · pythonnet/pythonnet
X Title: Can't seem to compare DateTime · Issue #323 · pythonnet/pythonnet
Description: This code throws an exception: lastUpdate = DateTime.Now if (lastUpdate < DateTime.Now): pass The error is TypeError: unorderable types: DateTime() < DateTime()
Open Graph Description: This code throws an exception: lastUpdate = DateTime.Now if (lastUpdate < DateTime.Now): pass The error is TypeError: unorderable types: DateTime() < DateTime()
X Description: This code throws an exception: lastUpdate = DateTime.Now if (lastUpdate < DateTime.Now): pass The error is TypeError: unorderable types: DateTime() < DateTime()
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/323
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't seem to compare DateTime ","articleBody":"This code throws an exception:\r\n\r\n```python\r\nlastUpdate = DateTime.Now\r\n\r\nif (lastUpdate \u003c DateTime.Now):\r\n pass\r\n```\r\n\r\nThe error is\r\n\r\n\u003eTypeError: unorderable types: DateTime() \u003c DateTime()","author":{"url":"https://github.com/Thraka","@type":"Person","name":"Thraka"},"datePublished":"2017-01-12T04:01:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/323/pythonnet/issues/323"}
| 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:c10ea0a2-3cff-557d-190c-09eea5126523 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C62:22A3B:2AC3378:3C40494:6971038E |
| html-safe-nonce | c35c041fa494407e018876cd40e0faab1c7c54af6490ee26d846e0057780ec67 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzYyOjIyQTNCOjJBQzMzNzg6M0M0MDQ5NDo2OTcxMDM4RSIsInZpc2l0b3JfaWQiOiIyMTU2ODMzNDMyNzk1MTUzMjk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 18ce2fcc677328c2bd15a1434ae953491865ad109bec03418fb12953da2eda5d |
| hovercard-subject-tag | issue:200273572 |
| 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/pythonnet/pythonnet/323/issue_layout |
| twitter:image | https://opengraph.githubassets.com/33b76b881f79fe89461ede87e9a22a3b5301224ca0255b109ee8d4a8cf0ed828/pythonnet/pythonnet/issues/323 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/33b76b881f79fe89461ede87e9a22a3b5301224ca0255b109ee8d4a8cf0ed828/pythonnet/pythonnet/issues/323 |
| og:image:alt | This code throws an exception: lastUpdate = DateTime.Now if (lastUpdate < DateTime.Now): pass The error is TypeError: unorderable types: DateTime() < DateTime() |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Thraka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d17fd2bbd784dc91f3a78a2f1d2c41d9f4f8ce86136d09833e3cf21b2bde1b7 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| 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 | e053d923fb27a9d948f8cefae8ba3bf43f7b938f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width