{"action":"created","issue":{"url":"https://api.github.com/repos/sdispater/pendulum/issues/71","repository_url":"https://api.github.com/repos/sdispater/pendulum","labels_url":"https://api.github.com/repos/sdispater/pendulum/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/sdispater/pendulum/issues/71/comments","events_url":"https://api.github.com/repos/sdispater/pendulum/issues/71/events","html_url":"https://github.com/sdispater/pendulum/issues/71","id":188191340,"number":71,"title":"datetime compatibility - timestamp int vs function","user":{"login":"numberoverzero","id":1223809,"avatar_url":"https://avatars.githubusercontent.com/u/1223809?v=3","gravatar_id":"","url":"https://api.github.com/users/numberoverzero","html_url":"https://github.com/numberoverzero","followers_url":"https://api.github.com/users/numberoverzero/followers","following_url":"https://api.github.com/users/numberoverzero/following{/other_user}","gists_url":"https://api.github.com/users/numberoverzero/gists{/gist_id}","starred_url":"https://api.github.com/users/numberoverzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numberoverzero/subscriptions","organizations_url":"https://api.github.com/users/numberoverzero/orgs","repos_url":"https://api.github.com/users/numberoverzero/repos","events_url":"https://api.github.com/users/numberoverzero/events{/privacy}","received_events_url":"https://api.github.com/users/numberoverzero/received_events","type":"User","site_admin":false},"labels":[{"id":399412055,"url":"https://api.github.com/repos/sdispater/pendulum/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/sdispater/pendulum/milestones/4","html_url":"https://github.com/sdispater/pendulum/milestones/0.7","labels_url":"https://api.github.com/repos/sdispater/pendulum/milestones/4/labels","id":2017094,"number":4,"title":"0.7","description":"","creator":{"login":"sdispater","id":555648,"avatar_url":"https://avatars.githubusercontent.com/u/555648?v=3","gravatar_id":"","url":"https://api.github.com/users/sdispater","html_url":"https://github.com/sdispater","followers_url":"https://api.github.com/users/sdispater/followers","following_url":"https://api.github.com/users/sdispater/following{/other_user}","gists_url":"https://api.github.com/users/sdispater/gists{/gist_id}","starred_url":"https://api.github.com/users/sdispater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdispater/subscriptions","organizations_url":"https://api.github.com/users/sdispater/orgs","repos_url":"https://api.github.com/users/sdispater/repos","events_url":"https://api.github.com/users/sdispater/events{/privacy}","received_events_url":"https://api.github.com/users/sdispater/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2016-09-20T17:36:59Z","updated_at":"2016-11-11T23:00:18Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2016-11-09T08:35:51Z","updated_at":"2016-11-13T03:17:27Z","closed_at":null,"body":"Does pendulum aim for full api compatibility with datetime.datetime?  It looks like pendulum's `timestamp` is a property, while datetime's `timestamp` is a function:\r\n\r\n```\r\nfrom datetime import datetime, timezone\r\nimport pendulum\r\nd = datetime.now(timezone.utc)\r\np = pendulum.now(timezone.utc)\r\n\r\nd.timestamp\r\n# <function datetime.timestamp>\r\n\r\nd.timestamp()\r\n# 1478671704.494979\r\n\r\np.timestamp\r\n# 1478671596\r\n```\r\n\r\nI really wanted to use pendulum under the covers and expose the interface as datetime, but this is a property I expect users to depend on having the usual signature."},"comment":{"url":"https://api.github.com/repos/sdispater/pendulum/issues/comments/260164269","html_url":"https://github.com/sdispater/pendulum/issues/71#issuecomment-260164269","issue_url":"https://api.github.com/repos/sdispater/pendulum/issues/71","id":260164269,"user":{"login":"danilobellini","id":2096474,"avatar_url":"https://avatars.githubusercontent.com/u/2096474?v=3","gravatar_id":"","url":"https://api.github.com/users/danilobellini","html_url":"https://github.com/danilobellini","followers_url":"https://api.github.com/users/danilobellini/followers","following_url":"https://api.github.com/users/danilobellini/following{/other_user}","gists_url":"https://api.github.com/users/danilobellini/gists{/gist_id}","starred_url":"https://api.github.com/users/danilobellini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danilobellini/subscriptions","organizations_url":"https://api.github.com/users/danilobellini/orgs","repos_url":"https://api.github.com/users/danilobellini/repos","events_url":"https://api.github.com/users/danilobellini/events{/privacy}","received_events_url":"https://api.github.com/users/danilobellini/received_events","type":"User","site_admin":false},"created_at":"2016-11-13T03:17:27Z","updated_at":"2016-11-13T03:17:27Z","body":"Neither rounding nor truncating is \"correct\". The float itself is an approximation.\r\n\r\nThe library should provide means to easily get the exact timestamp (in both seconds and microseconds) and should have a good performance on that, because that's something any datetime library should provide. You're the one telling the library shouldn't have something, not me.\r\n\r\nThe amount of backwards incompatible changes I've seen the last few weeks is huge. That's enough for me to say it's unstable. I'm not saying backwards compatibility is \"law\", the bad part here is that approximations are seen as more desired than exact values, and it seems that some features may simply vanish away because of a name conflict (instead of being renamed). Should I really trust my code on this?\r\n\r\nIf the standard datetime is enough for you, I wonder why you're using this library or even typing anything here. The only reason I'm using this library is because Arrow requires casting to UTC before doing maths with time (e.g. adding a microsecond), and the datetime features aren't enough to deal with some date stuff I need. I really don't care if Pendulum includes the datetime API as its own API, but I care when anyone thinks it suffices."}}
{"actor":{"display_login":"danilobellini"}}