{"action":"created","issue":{"url":"https://api.github.com/repos/crsmithdev/arrow/issues/239","labels_url":"https://api.github.com/repos/crsmithdev/arrow/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/crsmithdev/arrow/issues/239/comments","events_url":"https://api.github.com/repos/crsmithdev/arrow/issues/239/events","html_url":"https://github.com/crsmithdev/arrow/issues/239","id":92504246,"number":239,"title":"arrow.get returns incorrect for datetimes when parsing floats","user":{"login":"trcarden","id":460530,"avatar_url":"https://avatars.githubusercontent.com/u/460530?v=3","gravatar_id":"","url":"https://api.github.com/users/trcarden","html_url":"https://github.com/trcarden","followers_url":"https://api.github.com/users/trcarden/followers","following_url":"https://api.github.com/users/trcarden/following{/other_user}","gists_url":"https://api.github.com/users/trcarden/gists{/gist_id}","starred_url":"https://api.github.com/users/trcarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trcarden/subscriptions","organizations_url":"https://api.github.com/users/trcarden/orgs","repos_url":"https://api.github.com/users/trcarden/repos","events_url":"https://api.github.com/users/trcarden/events{/privacy}","received_events_url":"https://api.github.com/users/trcarden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-01T23:10:05Z","updated_at":"2015-07-09T23:26:29Z","closed_at":null,"body":"Some float values don't return the correct datetimes form arrow.get(). As you can see below the timestamp is off by one.\r\n\r\n```python\r\nIn [13]: arrow.get(1435791098.724428).datetime.timestamp()\r\nOut[13]: 1435791098.724427\r\n```\r\n\r\nOn arrow-0.5.4, python 3.4\r\n\r\nSeems like its a bug in python: https://bugs.python.org/issue23517\r\n\r\nI guess then we should see if arrow can abstract the error away.\r\n\r\nHere is a work around\r\n```python\r\ndatetime(1970, 1, 1) + timedelta(seconds=timestamp)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/crsmithdev/arrow/issues/comments/120173372","html_url":"https://github.com/crsmithdev/arrow/issues/239#issuecomment-120173372","issue_url":"https://api.github.com/repos/crsmithdev/arrow/issues/239","id":120173372,"user":{"login":"andrewelkins","id":7257497,"avatar_url":"https://avatars.githubusercontent.com/u/7257497?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewelkins","html_url":"https://github.com/andrewelkins","followers_url":"https://api.github.com/users/andrewelkins/followers","following_url":"https://api.github.com/users/andrewelkins/following{/other_user}","gists_url":"https://api.github.com/users/andrewelkins/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewelkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewelkins/subscriptions","organizations_url":"https://api.github.com/users/andrewelkins/orgs","repos_url":"https://api.github.com/users/andrewelkins/repos","events_url":"https://api.github.com/users/andrewelkins/events{/privacy}","received_events_url":"https://api.github.com/users/andrewelkins/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T23:26:29Z","updated_at":"2015-07-09T23:26:29Z","body":"Certainly a python bug, don't know if we'll address it here."}}