{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/27782","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/27782/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/27782/comments","events_url":"https://api.github.com/repos/golang/go/issues/27782/events","html_url":"https://github.com/golang/go/issues/27782","id":362349700,"node_id":"MDU6SXNzdWUzNjIzNDk3MDA=","number":27782,"title":"proposal: time: direct support for Unix millis and micros - RE: #18935","user":{"login":"jeffreydwalter","id":567047,"node_id":"MDQ6VXNlcjU2NzA0Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/567047?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffreydwalter","html_url":"https://github.com/jeffreydwalter","followers_url":"https://api.github.com/users/jeffreydwalter/followers","following_url":"https://api.github.com/users/jeffreydwalter/following{/other_user}","gists_url":"https://api.github.com/users/jeffreydwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffreydwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffreydwalter/subscriptions","organizations_url":"https://api.github.com/users/jeffreydwalter/orgs","repos_url":"https://api.github.com/users/jeffreydwalter/repos","events_url":"https://api.github.com/users/jeffreydwalter/events{/privacy}","received_events_url":"https://api.github.com/users/jeffreydwalter/received_events","type":"User","site_admin":false},"labels":[{"id":236419512,"node_id":"MDU6TGFiZWwyMzY0MTk1MTI=","url":"https://api.github.com/repos/golang/go/labels/Proposal","name":"Proposal","color":"ededed","default":false},{"id":357033853,"node_id":"MDU6TGFiZWwzNTcwMzM4NTM=","url":"https://api.github.com/repos/golang/go/labels/WaitingForInfo","name":"WaitingForInfo","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/30","html_url":"https://github.com/golang/go/milestone/30","labels_url":"https://api.github.com/repos/golang/go/milestones/30/labels","id":1373555,"node_id":"MDk6TWlsZXN0b25lMTM3MzU1NQ==","number":30,"title":"Proposal","description":"Proposals that are pending (not yet accepted/rejected).\r\n","creator":{"login":"rsc","id":104030,"node_id":"MDQ6VXNlcjEwNDAzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":234,"closed_issues":610,"state":"open","created_at":"2015-10-24T01:40:49Z","updated_at":"2018-09-26T16:41:42Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2018-09-20T20:19:43Z","updated_at":"2018-09-26T19:47:03Z","closed_at":null,"author_association":"NONE","body":"I am writing a Go library to interact with the Netgear Arlo camera API, and it uses UNIX Epoch in millisecond (13 digit) form extensively.\r\n\r\nWhy not add support for these time formats? They exist in other languages and therefore other APIs which may potentially be consumed by Go.\r\n\r\nI vote for the original proposal in #18935:\r\n```\r\nInitial tl;dr: Go could make timestamp handling much easier by providing the following functions in its time library:\r\n\r\nfunc (t Time) UnixMicro() int64 { ... }\r\nfunc (t Time) UnixMilli() int64 { ... }\r\nfunc FromUnixMicro(us int64) Time { ... }\r\nfunc FromUnixMilli(ms int64) Time { ... }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/424845950","html_url":"https://github.com/golang/go/issues/27782#issuecomment-424845950","issue_url":"https://api.github.com/repos/golang/go/issues/27782","id":424845950,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDg0NTk1MA==","user":{"login":"ulikunitz","id":8460565,"node_id":"MDQ6VXNlcjg0NjA1NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/8460565?v=4","gravatar_id":"","url":"https://api.github.com/users/ulikunitz","html_url":"https://github.com/ulikunitz","followers_url":"https://api.github.com/users/ulikunitz/followers","following_url":"https://api.github.com/users/ulikunitz/following{/other_user}","gists_url":"https://api.github.com/users/ulikunitz/gists{/gist_id}","starred_url":"https://api.github.com/users/ulikunitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulikunitz/subscriptions","organizations_url":"https://api.github.com/users/ulikunitz/orgs","repos_url":"https://api.github.com/users/ulikunitz/repos","events_url":"https://api.github.com/users/ulikunitz/events{/privacy}","received_events_url":"https://api.github.com/users/ulikunitz/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T19:47:03Z","updated_at":"2018-09-26T19:47:03Z","author_association":"CONTRIBUTOR","body":"I've created [github.com/ulikunitz/unixtime](https://github.com/golang/go/issues) to measure the demand for the functionality. Note that I didn't have an existing package. I have improved the implementation to cover all possible int64 values.\r\n\r\nSee https://godoc.org/github.com/ulikunitz/unixtime for the documentation."}}
{"actor":{"display_login":"ulikunitz"}}