{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/7323","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/7323/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/7323/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/7323/events","html_url":"https://github.com/astropy/astropy/pull/7323","id":307829191,"number":7323,"title":"[WIP] Implement strftime and strptime for Time","user":{"login":"vn-ki","id":31964688,"avatar_url":"https://avatars0.githubusercontent.com/u/31964688?v=4","gravatar_id":"","url":"https://api.github.com/users/vn-ki","html_url":"https://github.com/vn-ki","followers_url":"https://api.github.com/users/vn-ki/followers","following_url":"https://api.github.com/users/vn-ki/following{/other_user}","gists_url":"https://api.github.com/users/vn-ki/gists{/gist_id}","starred_url":"https://api.github.com/users/vn-ki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vn-ki/subscriptions","organizations_url":"https://api.github.com/users/vn-ki/orgs","repos_url":"https://api.github.com/users/vn-ki/repos","events_url":"https://api.github.com/users/vn-ki/events{/privacy}","received_events_url":"https://api.github.com/users/vn-ki/received_events","type":"User","site_admin":false},"labels":[{"id":10515381,"url":"https://api.github.com/repos/astropy/astropy/labels/time","name":"time","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/astropy/astropy/milestones/52","html_url":"https://github.com/astropy/astropy/milestone/52","labels_url":"https://api.github.com/repos/astropy/astropy/milestones/52/labels","id":2929745,"number":52,"title":"v3.1","description":"","creator":{"login":"eteq","id":346587,"avatar_url":"https://avatars1.githubusercontent.com/u/346587?v=4","gravatar_id":"","url":"https://api.github.com/users/eteq","html_url":"https://github.com/eteq","followers_url":"https://api.github.com/users/eteq/followers","following_url":"https://api.github.com/users/eteq/following{/other_user}","gists_url":"https://api.github.com/users/eteq/gists{/gist_id}","starred_url":"https://api.github.com/users/eteq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eteq/subscriptions","organizations_url":"https://api.github.com/users/eteq/orgs","repos_url":"https://api.github.com/users/eteq/repos","events_url":"https://api.github.com/users/eteq/events{/privacy}","received_events_url":"https://api.github.com/users/eteq/received_events","type":"User","site_admin":false},"open_issues":66,"closed_issues":24,"state":"open","created_at":"2017-11-21T23:24:18Z","updated_at":"2018-04-02T19:09:40Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2018-03-22T21:56:20Z","updated_at":"2018-04-03T12:12:12Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/astropy/astropy/pulls/7323","html_url":"https://github.com/astropy/astropy/pull/7323","diff_url":"https://github.com/astropy/astropy/pull/7323.diff","patch_url":"https://github.com/astropy/astropy/pull/7323.patch"},"body":"There is no easy formatting available for `Time`. I wanted to get some feedback on how to go about it.\r\n\r\nThis is my first time contributing here. Sorry if I did something wrong.\r\n\r\nCloses #7309."},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/378228205","html_url":"https://github.com/astropy/astropy/pull/7323#issuecomment-378228205","issue_url":"https://api.github.com/repos/astropy/astropy/issues/7323","id":378228205,"user":{"login":"vn-ki","id":31964688,"avatar_url":"https://avatars0.githubusercontent.com/u/31964688?v=4","gravatar_id":"","url":"https://api.github.com/users/vn-ki","html_url":"https://github.com/vn-ki","followers_url":"https://api.github.com/users/vn-ki/followers","following_url":"https://api.github.com/users/vn-ki/following{/other_user}","gists_url":"https://api.github.com/users/vn-ki/gists{/gist_id}","starred_url":"https://api.github.com/users/vn-ki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vn-ki/subscriptions","organizations_url":"https://api.github.com/users/vn-ki/orgs","repos_url":"https://api.github.com/users/vn-ki/repos","events_url":"https://api.github.com/users/vn-ki/events{/privacy}","received_events_url":"https://api.github.com/users/vn-ki/received_events","type":"User","site_admin":false},"created_at":"2018-04-03T12:12:11Z","updated_at":"2018-04-03T12:12:11Z","author_association":"NONE","body":"@taldcroft About your first concern,\r\n```python\r\n>>> t = Time(['2016-12-31 23:59:60', '2015-06-30 23:59:60'])\r\n>>> for dt in t.datetime.flat:\r\n...     print(dt.strftime('%Y %S'))\r\n...\r\nValueError: Time (array(2016, dtype=int32), array(12, dtype=int32), array(31, dtype=int32), array(23, dtype=int32), array(59, dtype=int32), array(60, dtype=int32), array(0, dtype=int32)) is within a leap second but datetime does not support leap seconds\r\n>>>\r\n>>> t.strftime('%Y %S')\r\n['2016 60', '2015 60']\r\n```\r\n\r\nI will update the PR to satisfy other requirements."}}
{"actor":{"display_login":"vn-ki"}}