{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/11302","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/11302/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/11302/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/11302/events","html_url":"https://github.com/numpy/numpy/issues/11302","id":331064424,"node_id":"MDU6SXNzdWUzMzEwNjQ0MjQ=","number":11302,"title":"np.datetime64 scalar constructor silently ignores dtype keyword argument","user":{"login":"pumelo","id":11403500,"node_id":"MDQ6VXNlcjExNDAzNTAw","avatar_url":"https://avatars1.githubusercontent.com/u/11403500?v=4","gravatar_id":"","url":"https://api.github.com/users/pumelo","html_url":"https://github.com/pumelo","followers_url":"https://api.github.com/users/pumelo/followers","following_url":"https://api.github.com/users/pumelo/following{/other_user}","gists_url":"https://api.github.com/users/pumelo/gists{/gist_id}","starred_url":"https://api.github.com/users/pumelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pumelo/subscriptions","organizations_url":"https://api.github.com/users/pumelo/orgs","repos_url":"https://api.github.com/users/pumelo/repos","events_url":"https://api.github.com/users/pumelo/events{/privacy}","received_events_url":"https://api.github.com/users/pumelo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-11T06:51:34Z","updated_at":"2018-06-11T08:36:09Z","closed_at":"2018-06-11T08:35:42Z","author_association":"NONE","body":"See the following example which returns True.\r\n```\r\nbytes(np.datetime64('2017-12-28T12:00:00.000000', dtype='M8[ns]').data) == bytes(np.datetime64('1970-01-18T12:41:02.400000000', dtype='M8[ns]').data)\r\n```\r\n\r\nThe bottom line is, that the dtype keyword argument is silently ignored and the type of the datetime object is infered from how many zeros you append to the time string."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/396165608","html_url":"https://github.com/numpy/numpy/issues/11302#issuecomment-396165608","issue_url":"https://api.github.com/repos/numpy/numpy/issues/11302","id":396165608,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjE2NTYwOA==","user":{"login":"eric-wieser","id":425260,"node_id":"MDQ6VXNlcjQyNTI2MA==","avatar_url":"https://avatars3.githubusercontent.com/u/425260?v=4","gravatar_id":"","url":"https://api.github.com/users/eric-wieser","html_url":"https://github.com/eric-wieser","followers_url":"https://api.github.com/users/eric-wieser/followers","following_url":"https://api.github.com/users/eric-wieser/following{/other_user}","gists_url":"https://api.github.com/users/eric-wieser/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-wieser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-wieser/subscriptions","organizations_url":"https://api.github.com/users/eric-wieser/orgs","repos_url":"https://api.github.com/users/eric-wieser/repos","events_url":"https://api.github.com/users/eric-wieser/events{/privacy}","received_events_url":"https://api.github.com/users/eric-wieser/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T08:36:09Z","updated_at":"2018-06-11T08:36:09Z","author_association":"MEMBER","body":"The correct way to spell what you're after is `np.datetime64('2017-12-28T12:00:00.000000', 'ns')`, by the way"}}
{"actor":{"display_login":"eric-wieser"}}