{"action":"opened","issue":{"url":"https://api.github.com/repos/jobn123/blog/issues/9","repository_url":"https://api.github.com/repos/jobn123/blog","labels_url":"https://api.github.com/repos/jobn123/blog/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/jobn123/blog/issues/9/comments","events_url":"https://api.github.com/repos/jobn123/blog/issues/9/events","html_url":"https://github.com/jobn123/blog/issues/9","id":173095347,"number":9,"title":"9. js 获取不同格式的时间","user":{"login":"jobn123","id":11002787,"avatar_url":"https://avatars.githubusercontent.com/u/11002787?v=3","gravatar_id":"","url":"https://api.github.com/users/jobn123","html_url":"https://github.com/jobn123","followers_url":"https://api.github.com/users/jobn123/followers","following_url":"https://api.github.com/users/jobn123/following{/other_user}","gists_url":"https://api.github.com/users/jobn123/gists{/gist_id}","starred_url":"https://api.github.com/users/jobn123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobn123/subscriptions","organizations_url":"https://api.github.com/users/jobn123/orgs","repos_url":"https://api.github.com/users/jobn123/repos","events_url":"https://api.github.com/users/jobn123/events{/privacy}","received_events_url":"https://api.github.com/users/jobn123/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jobn123/blog/labels/javascript","name":"javascript","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"jobn123","id":11002787,"avatar_url":"https://avatars.githubusercontent.com/u/11002787?v=3","gravatar_id":"","url":"https://api.github.com/users/jobn123","html_url":"https://github.com/jobn123","followers_url":"https://api.github.com/users/jobn123/followers","following_url":"https://api.github.com/users/jobn123/following{/other_user}","gists_url":"https://api.github.com/users/jobn123/gists{/gist_id}","starred_url":"https://api.github.com/users/jobn123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobn123/subscriptions","organizations_url":"https://api.github.com/users/jobn123/orgs","repos_url":"https://api.github.com/users/jobn123/repos","events_url":"https://api.github.com/users/jobn123/events{/privacy}","received_events_url":"https://api.github.com/users/jobn123/received_events","type":"User","site_admin":false},"assignees":[{"login":"jobn123","id":11002787,"avatar_url":"https://avatars.githubusercontent.com/u/11002787?v=3","gravatar_id":"","url":"https://api.github.com/users/jobn123","html_url":"https://github.com/jobn123","followers_url":"https://api.github.com/users/jobn123/followers","following_url":"https://api.github.com/users/jobn123/following{/other_user}","gists_url":"https://api.github.com/users/jobn123/gists{/gist_id}","starred_url":"https://api.github.com/users/jobn123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobn123/subscriptions","organizations_url":"https://api.github.com/users/jobn123/orgs","repos_url":"https://api.github.com/users/jobn123/repos","events_url":"https://api.github.com/users/jobn123/events{/privacy}","received_events_url":"https://api.github.com/users/jobn123/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-08-25T01:34:45Z","updated_at":"2016-08-25T01:34:45Z","closed_at":null,"body":"        var d = new Date();\r\n\r\n\tvar ts = d.getTime() - d.getTimezoneOffset()*60*1000;\r\n\r\n\tvar s = new Date(ts).toISOString()\r\n\t\r\n\ts.replace(/T.+$/, ''); \t\t//\"2015-11-28\"\r\n\ts.replace(/\\-\\d+T.+$/, '')\t//\"2015-11\"\r\n\ts.replace(/(^\\d+\\-|T.+$)/g, '') \t//\"11-28\"\r\n\ts.replace(/(^[0-9\\-]+T|\\.\\d+Z$)/g, '') //\"13:37:23\"\r\n\ts.replace(/(^[0-9\\-]+T|:\\d+\\.\\d+Z$)/g, '')\t//\"13:37\"\r\n\ts.replace(/T/g,' ').replace(/\\.\\d+Z$/,'')\t//\"2015-11-28 13:37:23\"\r\n\ts.replace(/T/g,' ').replace(/:\\d+\\.\\d+Z$/,'') //\"2015-11-28 13:37"}}
{"actor":{"display_login":"jobn123"}}