{"action":"opened","number":11,"pull_request":{"url":"https://api.github.com/repos/open-ag-tech/api-spec/pulls/11","id":196028396,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2MDI4Mzk2","html_url":"https://github.com/open-ag-tech/api-spec/pull/11","diff_url":"https://github.com/open-ag-tech/api-spec/pull/11.diff","patch_url":"https://github.com/open-ag-tech/api-spec/pull/11.patch","issue_url":"https://api.github.com/repos/open-ag-tech/api-spec/issues/11","number":11,"state":"open","locked":false,"title":"Recommend to use RFC3339 for timestamp formatting","user":{"login":"penguinpowernz","id":4642414,"node_id":"MDQ6VXNlcjQ2NDI0MTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/4642414?v=4","gravatar_id":"","url":"https://api.github.com/users/penguinpowernz","html_url":"https://github.com/penguinpowernz","followers_url":"https://api.github.com/users/penguinpowernz/followers","following_url":"https://api.github.com/users/penguinpowernz/following{/other_user}","gists_url":"https://api.github.com/users/penguinpowernz/gists{/gist_id}","starred_url":"https://api.github.com/users/penguinpowernz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penguinpowernz/subscriptions","organizations_url":"https://api.github.com/users/penguinpowernz/orgs","repos_url":"https://api.github.com/users/penguinpowernz/repos","events_url":"https://api.github.com/users/penguinpowernz/events{/privacy}","received_events_url":"https://api.github.com/users/penguinpowernz/received_events","type":"User","site_admin":false},"body":"To make the API more palatable to developers, it would be nicer to use an existing and widely used open standard made for internet protocols.  For this reason I recommend switching to the RFC3339 standard. \r\n\r\n## golang\r\n\r\n```go\r\ntstamp := time.Now().Format(time.RFC3339)  // get the current time as an RFC3339 string\r\nt, err := time.Parse(time.RFC3339, tstamp) // parse it to a time object\r\ntstamp = t.Format(time.RFC3339)            // format the time object to an RFC3339 string\r\n\r\n```\r\n## ruby\r\n\r\n```ruby\r\ntstamp = DateTime.now.rfc3339(0)   # get the current time as an RFC3339 string\r\nt = DateTime.rfc3339(tstamp)       # parse it to a DateTime object\r\ntstamp = t.rfc3339(0)              # format the time DateTime object as a RFC3339 string\r\n```\r\n## python\r\n\r\n```python\r\nfrom pyrfc3339 import generate, parse\r\nfrom datetime import datetime\r\ntstamp = generate(datetime.utcnow())\r\nt = parse(tstamp)\r\ntstamp = generate(t)\r\n```\r\n","created_at":"2018-06-20T05:52:12Z","updated_at":"2018-06-20T05:52:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/open-ag-tech/api-spec/pulls/11/commits","review_comments_url":"https://api.github.com/repos/open-ag-tech/api-spec/pulls/11/comments","review_comment_url":"https://api.github.com/repos/open-ag-tech/api-spec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-ag-tech/api-spec/issues/11/comments","statuses_url":"https://api.github.com/repos/open-ag-tech/api-spec/statuses/9136caddf5bf210974a514af3bec390d9693515d","head":{"label":"penguinpowernz:patch-1","ref":"patch-1","sha":"9136caddf5bf210974a514af3bec390d9693515d","user":{"login":"penguinpowernz","id":4642414,"node_id":"MDQ6VXNlcjQ2NDI0MTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/4642414?v=4","gravatar_id":"","url":"https://api.github.com/users/penguinpowernz","html_url":"https://github.com/penguinpowernz","followers_url":"https://api.github.com/users/penguinpowernz/followers","following_url":"https://api.github.com/users/penguinpowernz/following{/other_user}","gists_url":"https://api.github.com/users/penguinpowernz/gists{/gist_id}","starred_url":"https://api.github.com/users/penguinpowernz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penguinpowernz/subscriptions","organizations_url":"https://api.github.com/users/penguinpowernz/orgs","repos_url":"https://api.github.com/users/penguinpowernz/repos","events_url":"https://api.github.com/users/penguinpowernz/events{/privacy}","received_events_url":"https://api.github.com/users/penguinpowernz/received_events","type":"User","site_admin":false},"repo":{"id":137983273,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc5ODMyNzM=","name":"api-spec","full_name":"penguinpowernz/api-spec","owner":{"login":"penguinpowernz","id":4642414,"node_id":"MDQ6VXNlcjQ2NDI0MTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/4642414?v=4","gravatar_id":"","url":"https://api.github.com/users/penguinpowernz","html_url":"https://github.com/penguinpowernz","followers_url":"https://api.github.com/users/penguinpowernz/followers","following_url":"https://api.github.com/users/penguinpowernz/following{/other_user}","gists_url":"https://api.github.com/users/penguinpowernz/gists{/gist_id}","starred_url":"https://api.github.com/users/penguinpowernz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penguinpowernz/subscriptions","organizations_url":"https://api.github.com/users/penguinpowernz/orgs","repos_url":"https://api.github.com/users/penguinpowernz/repos","events_url":"https://api.github.com/users/penguinpowernz/events{/privacy}","received_events_url":"https://api.github.com/users/penguinpowernz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/penguinpowernz/api-spec","description":"The open API specification for exchanging data and operational control","fork":true,"url":"https://api.github.com/repos/penguinpowernz/api-spec","forks_url":"https://api.github.com/repos/penguinpowernz/api-spec/forks","keys_url":"https://api.github.com/repos/penguinpowernz/api-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/penguinpowernz/api-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/penguinpowernz/api-spec/teams","hooks_url":"https://api.github.com/repos/penguinpowernz/api-spec/hooks","issue_events_url":"https://api.github.com/repos/penguinpowernz/api-spec/issues/events{/number}","events_url":"https://api.github.com/repos/penguinpowernz/api-spec/events","assignees_url":"https://api.github.com/repos/penguinpowernz/api-spec/assignees{/user}","branches_url":"https://api.github.com/repos/penguinpowernz/api-spec/branches{/branch}","tags_url":"https://api.github.com/repos/penguinpowernz/api-spec/tags","blobs_url":"https://api.github.com/repos/penguinpowernz/api-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/penguinpowernz/api-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/penguinpowernz/api-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/penguinpowernz/api-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/penguinpowernz/api-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/penguinpowernz/api-spec/languages","stargazers_url":"https://api.github.com/repos/penguinpowernz/api-spec/stargazers","contributors_url":"https://api.github.com/repos/penguinpowernz/api-spec/contributors","subscribers_url":"https://api.github.com/repos/penguinpowernz/api-spec/subscribers","subscription_url":"https://api.github.com/repos/penguinpowernz/api-spec/subscription","commits_url":"https://api.github.com/repos/penguinpowernz/api-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/penguinpowernz/api-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/penguinpowernz/api-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/penguinpowernz/api-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/penguinpowernz/api-spec/contents/{+path}","compare_url":"https://api.github.com/repos/penguinpowernz/api-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/penguinpowernz/api-spec/merges","archive_url":"https://api.github.com/repos/penguinpowernz/api-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/penguinpowernz/api-spec/downloads","issues_url":"https://api.github.com/repos/penguinpowernz/api-spec/issues{/number}","pulls_url":"https://api.github.com/repos/penguinpowernz/api-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/penguinpowernz/api-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/penguinpowernz/api-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/penguinpowernz/api-spec/labels{/name}","releases_url":"https://api.github.com/repos/penguinpowernz/api-spec/releases{/id}","deployments_url":"https://api.github.com/repos/penguinpowernz/api-spec/deployments","created_at":"2018-06-20T05:15:58Z","updated_at":"2018-06-20T05:16:00Z","pushed_at":"2018-06-20T05:23:30Z","git_url":"git://github.com/penguinpowernz/api-spec.git","ssh_url":"git@github.com:penguinpowernz/api-spec.git","clone_url":"https://github.com/penguinpowernz/api-spec.git","svn_url":"https://github.com/penguinpowernz/api-spec","homepage":null,"size":91,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"open-ag-tech:master","ref":"master","sha":"b1b11363a8e995628f0d844293faf8fe69c1447b","user":{"login":"open-ag-tech","id":36709546,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzA5NTQ2","avatar_url":"https://avatars0.githubusercontent.com/u/36709546?v=4","gravatar_id":"","url":"https://api.github.com/users/open-ag-tech","html_url":"https://github.com/open-ag-tech","followers_url":"https://api.github.com/users/open-ag-tech/followers","following_url":"https://api.github.com/users/open-ag-tech/following{/other_user}","gists_url":"https://api.github.com/users/open-ag-tech/gists{/gist_id}","starred_url":"https://api.github.com/users/open-ag-tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-ag-tech/subscriptions","organizations_url":"https://api.github.com/users/open-ag-tech/orgs","repos_url":"https://api.github.com/users/open-ag-tech/repos","events_url":"https://api.github.com/users/open-ag-tech/events{/privacy}","received_events_url":"https://api.github.com/users/open-ag-tech/received_events","type":"Organization","site_admin":false},"repo":{"id":122375212,"node_id":"MDEwOlJlcG9zaXRvcnkxMjIzNzUyMTI=","name":"api-spec","full_name":"open-ag-tech/api-spec","owner":{"login":"open-ag-tech","id":36709546,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzA5NTQ2","avatar_url":"https://avatars0.githubusercontent.com/u/36709546?v=4","gravatar_id":"","url":"https://api.github.com/users/open-ag-tech","html_url":"https://github.com/open-ag-tech","followers_url":"https://api.github.com/users/open-ag-tech/followers","following_url":"https://api.github.com/users/open-ag-tech/following{/other_user}","gists_url":"https://api.github.com/users/open-ag-tech/gists{/gist_id}","starred_url":"https://api.github.com/users/open-ag-tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-ag-tech/subscriptions","organizations_url":"https://api.github.com/users/open-ag-tech/orgs","repos_url":"https://api.github.com/users/open-ag-tech/repos","events_url":"https://api.github.com/users/open-ag-tech/events{/privacy}","received_events_url":"https://api.github.com/users/open-ag-tech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-ag-tech/api-spec","description":"The open API specification for exchanging data and operational control","fork":false,"url":"https://api.github.com/repos/open-ag-tech/api-spec","forks_url":"https://api.github.com/repos/open-ag-tech/api-spec/forks","keys_url":"https://api.github.com/repos/open-ag-tech/api-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-ag-tech/api-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-ag-tech/api-spec/teams","hooks_url":"https://api.github.com/repos/open-ag-tech/api-spec/hooks","issue_events_url":"https://api.github.com/repos/open-ag-tech/api-spec/issues/events{/number}","events_url":"https://api.github.com/repos/open-ag-tech/api-spec/events","assignees_url":"https://api.github.com/repos/open-ag-tech/api-spec/assignees{/user}","branches_url":"https://api.github.com/repos/open-ag-tech/api-spec/branches{/branch}","tags_url":"https://api.github.com/repos/open-ag-tech/api-spec/tags","blobs_url":"https://api.github.com/repos/open-ag-tech/api-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-ag-tech/api-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-ag-tech/api-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-ag-tech/api-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-ag-tech/api-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/open-ag-tech/api-spec/languages","stargazers_url":"https://api.github.com/repos/open-ag-tech/api-spec/stargazers","contributors_url":"https://api.github.com/repos/open-ag-tech/api-spec/contributors","subscribers_url":"https://api.github.com/repos/open-ag-tech/api-spec/subscribers","subscription_url":"https://api.github.com/repos/open-ag-tech/api-spec/subscription","commits_url":"https://api.github.com/repos/open-ag-tech/api-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-ag-tech/api-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-ag-tech/api-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-ag-tech/api-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-ag-tech/api-spec/contents/{+path}","compare_url":"https://api.github.com/repos/open-ag-tech/api-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-ag-tech/api-spec/merges","archive_url":"https://api.github.com/repos/open-ag-tech/api-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-ag-tech/api-spec/downloads","issues_url":"https://api.github.com/repos/open-ag-tech/api-spec/issues{/number}","pulls_url":"https://api.github.com/repos/open-ag-tech/api-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/open-ag-tech/api-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/open-ag-tech/api-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-ag-tech/api-spec/labels{/name}","releases_url":"https://api.github.com/repos/open-ag-tech/api-spec/releases{/id}","deployments_url":"https://api.github.com/repos/open-ag-tech/api-spec/deployments","created_at":"2018-02-21T18:22:47Z","updated_at":"2018-06-19T10:50:41Z","pushed_at":"2018-06-15T00:38:20Z","git_url":"git://github.com/open-ag-tech/api-spec.git","ssh_url":"git@github.com:open-ag-tech/api-spec.git","clone_url":"https://github.com/open-ag-tech/api-spec.git","svn_url":"https://github.com/open-ag-tech/api-spec","homepage":null,"size":91,"stargazers_count":8,"watchers_count":8,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":6,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/open-ag-tech/api-spec/pulls/11"},"html":{"href":"https://github.com/open-ag-tech/api-spec/pull/11"},"issue":{"href":"https://api.github.com/repos/open-ag-tech/api-spec/issues/11"},"comments":{"href":"https://api.github.com/repos/open-ag-tech/api-spec/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/open-ag-tech/api-spec/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/open-ag-tech/api-spec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-ag-tech/api-spec/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/open-ag-tech/api-spec/statuses/9136caddf5bf210974a514af3bec390d9693515d"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":10,"deletions":4,"changed_files":1}}
{"actor":{"display_login":"penguinpowernz"}}