{"action":"created","issue":{"url":"https://api.github.com/repos/eddelbuettel/nanotime/issues/14","repository_url":"https://api.github.com/repos/eddelbuettel/nanotime","labels_url":"https://api.github.com/repos/eddelbuettel/nanotime/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/eddelbuettel/nanotime/issues/14/comments","events_url":"https://api.github.com/repos/eddelbuettel/nanotime/issues/14/events","html_url":"https://github.com/eddelbuettel/nanotime/issues/14","id":205022381,"number":14,"title":"nanotime arithmetic?","user":{"login":"lsilvest","id":25395372,"avatar_url":"https://avatars.githubusercontent.com/u/25395372?v=3","gravatar_id":"","url":"https://api.github.com/users/lsilvest","html_url":"https://github.com/lsilvest","followers_url":"https://api.github.com/users/lsilvest/followers","following_url":"https://api.github.com/users/lsilvest/following{/other_user}","gists_url":"https://api.github.com/users/lsilvest/gists{/gist_id}","starred_url":"https://api.github.com/users/lsilvest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsilvest/subscriptions","organizations_url":"https://api.github.com/users/lsilvest/orgs","repos_url":"https://api.github.com/users/lsilvest/repos","events_url":"https://api.github.com/users/lsilvest/events{/privacy}","received_events_url":"https://api.github.com/users/lsilvest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":35,"created_at":"2017-02-02T22:57:06Z","updated_at":"2017-02-13T01:37:38Z","closed_at":null,"body":"Another point that it blocking in order for `xts` to work with `nanotime` is arithmetic. In particular: \r\n\r\n~~~ R\r\nnanotime(\"2017-02-02T17:16:27.633531000+00:00\") + as.integer64(1e9)\r\n[1] \"2017-02-02T17:16:27.633531000+00:00\"\r\nWarning message:\r\nIncompatible methods (\"Ops.nanotime\", \"+.integer64\") for \"+\" \r\n~~~\r\n\r\nThe above works with `double` but not with `integer64`. I don't know how to solve this...\r\n\r\nThe fact that nanotime subtraction gives back a nanotime might be also problematic: \r\n\r\n~~~ R\r\n> nanotime(\"2017-02-02T17:16:27.633531000+00:00\") - nanotime(\"2017-02-02T17:16:26.633531000+00:00\")\r\n[1] \"1970-01-01T00:00:01.000000000+00:00\"\r\n~~~\r\n\r\nDid you have a specific idea in mind for arithmetic?"},"comment":{"url":"https://api.github.com/repos/eddelbuettel/nanotime/issues/comments/279274832","html_url":"https://github.com/eddelbuettel/nanotime/issues/14#issuecomment-279274832","issue_url":"https://api.github.com/repos/eddelbuettel/nanotime/issues/14","id":279274832,"user":{"login":"lsilvest","id":25395372,"avatar_url":"https://avatars.githubusercontent.com/u/25395372?v=3","gravatar_id":"","url":"https://api.github.com/users/lsilvest","html_url":"https://github.com/lsilvest","followers_url":"https://api.github.com/users/lsilvest/followers","following_url":"https://api.github.com/users/lsilvest/following{/other_user}","gists_url":"https://api.github.com/users/lsilvest/gists{/gist_id}","starred_url":"https://api.github.com/users/lsilvest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsilvest/subscriptions","organizations_url":"https://api.github.com/users/lsilvest/orgs","repos_url":"https://api.github.com/users/lsilvest/repos","events_url":"https://api.github.com/users/lsilvest/events{/privacy}","received_events_url":"https://api.github.com/users/lsilvest/received_events","type":"User","site_admin":false},"created_at":"2017-02-13T01:37:38Z","updated_at":"2017-02-13T01:37:38Z","body":"Yes, that was definitely scary :)"}}
{"actor":{"display_login":"lsilvest"}}