{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/grunfunke/SwiftMoment/pulls/1","id":31583532,"html_url":"https://github.com/grunfunke/SwiftMoment/pull/1","diff_url":"https://github.com/grunfunke/SwiftMoment/pull/1.diff","patch_url":"https://github.com/grunfunke/SwiftMoment/pull/1.patch","issue_url":"https://api.github.com/repos/grunfunke/SwiftMoment/issues/1","number":1,"state":"closed","locked":false,"title":"Added interval function","user":{"login":"grunfunke","id":8656083,"avatar_url":"https://avatars.githubusercontent.com/u/8656083?v=3","gravatar_id":"","url":"https://api.github.com/users/grunfunke","html_url":"https://github.com/grunfunke","followers_url":"https://api.github.com/users/grunfunke/followers","following_url":"https://api.github.com/users/grunfunke/following{/other_user}","gists_url":"https://api.github.com/users/grunfunke/gists{/gist_id}","starred_url":"https://api.github.com/users/grunfunke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grunfunke/subscriptions","organizations_url":"https://api.github.com/users/grunfunke/orgs","repos_url":"https://api.github.com/users/grunfunke/repos","events_url":"https://api.github.com/users/grunfunke/events{/privacy}","received_events_url":"https://api.github.com/users/grunfunke/received_events","type":"User","site_admin":false},"body":"A new function was contributed that returns an optional wrapping string that represents the time passed since the moment passed as argument. Examples:\n- “3 minutes ago”\n- “2 years ago”\n- “1 month ago”\nIt can be useful in places where the developer wants to show the amount of time since something was added to the database just like a Facebook post shows.","created_at":"2015-03-20T02:21:13Z","updated_at":"2015-03-21T07:48:10Z","closed_at":"2015-03-21T07:48:10Z","merged_at":null,"merge_commit_sha":"1d9b79ff1a1494b8cc2e9598628dfdb1db7d134b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/grunfunke/SwiftMoment/pulls/1/commits","review_comments_url":"https://api.github.com/repos/grunfunke/SwiftMoment/pulls/1/comments","review_comment_url":"https://api.github.com/repos/grunfunke/SwiftMoment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grunfunke/SwiftMoment/issues/1/comments","statuses_url":"https://api.github.com/repos/grunfunke/SwiftMoment/statuses/6ae49c6b284fe21bfc26742ed7e84c1c578e7b0e","head":{"label":"grunfunke:master","ref":"master","sha":"6ae49c6b284fe21bfc26742ed7e84c1c578e7b0e","user":{"login":"grunfunke","id":8656083,"avatar_url":"https://avatars.githubusercontent.com/u/8656083?v=3","gravatar_id":"","url":"https://api.github.com/users/grunfunke","html_url":"https://github.com/grunfunke","followers_url":"https://api.github.com/users/grunfunke/followers","following_url":"https://api.github.com/users/grunfunke/following{/other_user}","gists_url":"https://api.github.com/users/grunfunke/gists{/gist_id}","starred_url":"https://api.github.com/users/grunfunke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grunfunke/subscriptions","organizations_url":"https://api.github.com/users/grunfunke/orgs","repos_url":"https://api.github.com/users/grunfunke/repos","events_url":"https://api.github.com/users/grunfunke/events{/privacy}","received_events_url":"https://api.github.com/users/grunfunke/received_events","type":"User","site_admin":false},"repo":{"id":32557246,"name":"SwiftMoment","full_name":"grunfunke/SwiftMoment","owner":{"login":"grunfunke","id":8656083,"avatar_url":"https://avatars.githubusercontent.com/u/8656083?v=3","gravatar_id":"","url":"https://api.github.com/users/grunfunke","html_url":"https://github.com/grunfunke","followers_url":"https://api.github.com/users/grunfunke/followers","following_url":"https://api.github.com/users/grunfunke/following{/other_user}","gists_url":"https://api.github.com/users/grunfunke/gists{/gist_id}","starred_url":"https://api.github.com/users/grunfunke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grunfunke/subscriptions","organizations_url":"https://api.github.com/users/grunfunke/orgs","repos_url":"https://api.github.com/users/grunfunke/repos","events_url":"https://api.github.com/users/grunfunke/events{/privacy}","received_events_url":"https://api.github.com/users/grunfunke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grunfunke/SwiftMoment","description":"A time and calendar manipulation library for iOS 8+ written in Swift","fork":true,"url":"https://api.github.com/repos/grunfunke/SwiftMoment","forks_url":"https://api.github.com/repos/grunfunke/SwiftMoment/forks","keys_url":"https://api.github.com/repos/grunfunke/SwiftMoment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grunfunke/SwiftMoment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grunfunke/SwiftMoment/teams","hooks_url":"https://api.github.com/repos/grunfunke/SwiftMoment/hooks","issue_events_url":"https://api.github.com/repos/grunfunke/SwiftMoment/issues/events{/number}","events_url":"https://api.github.com/repos/grunfunke/SwiftMoment/events","assignees_url":"https://api.github.com/repos/grunfunke/SwiftMoment/assignees{/user}","branches_url":"https://api.github.com/repos/grunfunke/SwiftMoment/branches{/branch}","tags_url":"https://api.github.com/repos/grunfunke/SwiftMoment/tags","blobs_url":"https://api.github.com/repos/grunfunke/SwiftMoment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grunfunke/SwiftMoment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grunfunke/SwiftMoment/git/refs{/sha}","trees_url":"https://api.github.com/repos/grunfunke/SwiftMoment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grunfunke/SwiftMoment/statuses/{sha}","languages_url":"https://api.github.com/repos/grunfunke/SwiftMoment/languages","stargazers_url":"https://api.github.com/repos/grunfunke/SwiftMoment/stargazers","contributors_url":"https://api.github.com/repos/grunfunke/SwiftMoment/contributors","subscribers_url":"https://api.github.com/repos/grunfunke/SwiftMoment/subscribers","subscription_url":"https://api.github.com/repos/grunfunke/SwiftMoment/subscription","commits_url":"https://api.github.com/repos/grunfunke/SwiftMoment/commits{/sha}","git_commits_url":"https://api.github.com/repos/grunfunke/SwiftMoment/git/commits{/sha}","comments_url":"https://api.github.com/repos/grunfunke/SwiftMoment/comments{/number}","issue_comment_url":"https://api.github.com/repos/grunfunke/SwiftMoment/issues/comments{/number}","contents_url":"https://api.github.com/repos/grunfunke/SwiftMoment/contents/{+path}","compare_url":"https://api.github.com/repos/grunfunke/SwiftMoment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grunfunke/SwiftMoment/merges","archive_url":"https://api.github.com/repos/grunfunke/SwiftMoment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grunfunke/SwiftMoment/downloads","issues_url":"https://api.github.com/repos/grunfunke/SwiftMoment/issues{/number}","pulls_url":"https://api.github.com/repos/grunfunke/SwiftMoment/pulls{/number}","milestones_url":"https://api.github.com/repos/grunfunke/SwiftMoment/milestones{/number}","notifications_url":"https://api.github.com/repos/grunfunke/SwiftMoment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grunfunke/SwiftMoment/labels{/name}","releases_url":"https://api.github.com/repos/grunfunke/SwiftMoment/releases{/id}","created_at":"2015-03-20T02:08:46Z","updated_at":"2015-03-20T02:08:47Z","pushed_at":"2015-03-20T02:21:13Z","git_url":"git://github.com/grunfunke/SwiftMoment.git","ssh_url":"git@github.com:grunfunke/SwiftMoment.git","clone_url":"https://github.com/grunfunke/SwiftMoment.git","svn_url":"https://github.com/grunfunke/SwiftMoment","homepage":"http://akosma.github.io/SwiftMoment","size":330,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"grunfunke:v0.1","ref":"v0.1","sha":"be5c92380bc7550aa31e95cd1b4bba561f4fd85e","user":{"login":"grunfunke","id":8656083,"avatar_url":"https://avatars.githubusercontent.com/u/8656083?v=3","gravatar_id":"","url":"https://api.github.com/users/grunfunke","html_url":"https://github.com/grunfunke","followers_url":"https://api.github.com/users/grunfunke/followers","following_url":"https://api.github.com/users/grunfunke/following{/other_user}","gists_url":"https://api.github.com/users/grunfunke/gists{/gist_id}","starred_url":"https://api.github.com/users/grunfunke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grunfunke/subscriptions","organizations_url":"https://api.github.com/users/grunfunke/orgs","repos_url":"https://api.github.com/users/grunfunke/repos","events_url":"https://api.github.com/users/grunfunke/events{/privacy}","received_events_url":"https://api.github.com/users/grunfunke/received_events","type":"User","site_admin":false},"repo":{"id":32557246,"name":"SwiftMoment","full_name":"grunfunke/SwiftMoment","owner":{"login":"grunfunke","id":8656083,"avatar_url":"https://avatars.githubusercontent.com/u/8656083?v=3","gravatar_id":"","url":"https://api.github.com/users/grunfunke","html_url":"https://github.com/grunfunke","followers_url":"https://api.github.com/users/grunfunke/followers","following_url":"https://api.github.com/users/grunfunke/following{/other_user}","gists_url":"https://api.github.com/users/grunfunke/gists{/gist_id}","starred_url":"https://api.github.com/users/grunfunke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grunfunke/subscriptions","organizations_url":"https://api.github.com/users/grunfunke/orgs","repos_url":"https://api.github.com/users/grunfunke/repos","events_url":"https://api.github.com/users/grunfunke/events{/privacy}","received_events_url":"https://api.github.com/users/grunfunke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grunfunke/SwiftMoment","description":"A time and calendar manipulation library for iOS 8+ written in Swift","fork":true,"url":"https://api.github.com/repos/grunfunke/SwiftMoment","forks_url":"https://api.github.com/repos/grunfunke/SwiftMoment/forks","keys_url":"https://api.github.com/repos/grunfunke/SwiftMoment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grunfunke/SwiftMoment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grunfunke/SwiftMoment/teams","hooks_url":"https://api.github.com/repos/grunfunke/SwiftMoment/hooks","issue_events_url":"https://api.github.com/repos/grunfunke/SwiftMoment/issues/events{/number}","events_url":"https://api.github.com/repos/grunfunke/SwiftMoment/events","assignees_url":"https://api.github.com/repos/grunfunke/SwiftMoment/assignees{/user}","branches_url":"https://api.github.com/repos/grunfunke/SwiftMoment/branches{/branch}","tags_url":"https://api.github.com/repos/grunfunke/SwiftMoment/tags","blobs_url":"https://api.github.com/repos/grunfunke/SwiftMoment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grunfunke/SwiftMoment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grunfunke/SwiftMoment/git/refs{/sha}","trees_url":"https://api.github.com/repos/grunfunke/SwiftMoment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grunfunke/SwiftMoment/statuses/{sha}","languages_url":"https://api.github.com/repos/grunfunke/SwiftMoment/languages","stargazers_url":"https://api.github.com/repos/grunfunke/SwiftMoment/stargazers","contributors_url":"https://api.github.com/repos/grunfunke/SwiftMoment/contributors","subscribers_url":"https://api.github.com/repos/grunfunke/SwiftMoment/subscribers","subscription_url":"https://api.github.com/repos/grunfunke/SwiftMoment/subscription","commits_url":"https://api.github.com/repos/grunfunke/SwiftMoment/commits{/sha}","git_commits_url":"https://api.github.com/repos/grunfunke/SwiftMoment/git/commits{/sha}","comments_url":"https://api.github.com/repos/grunfunke/SwiftMoment/comments{/number}","issue_comment_url":"https://api.github.com/repos/grunfunke/SwiftMoment/issues/comments{/number}","contents_url":"https://api.github.com/repos/grunfunke/SwiftMoment/contents/{+path}","compare_url":"https://api.github.com/repos/grunfunke/SwiftMoment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grunfunke/SwiftMoment/merges","archive_url":"https://api.github.com/repos/grunfunke/SwiftMoment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grunfunke/SwiftMoment/downloads","issues_url":"https://api.github.com/repos/grunfunke/SwiftMoment/issues{/number}","pulls_url":"https://api.github.com/repos/grunfunke/SwiftMoment/pulls{/number}","milestones_url":"https://api.github.com/repos/grunfunke/SwiftMoment/milestones{/number}","notifications_url":"https://api.github.com/repos/grunfunke/SwiftMoment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grunfunke/SwiftMoment/labels{/name}","releases_url":"https://api.github.com/repos/grunfunke/SwiftMoment/releases{/id}","created_at":"2015-03-20T02:08:46Z","updated_at":"2015-03-20T02:08:47Z","pushed_at":"2015-03-20T02:21:13Z","git_url":"git://github.com/grunfunke/SwiftMoment.git","ssh_url":"git@github.com:grunfunke/SwiftMoment.git","clone_url":"https://github.com/grunfunke/SwiftMoment.git","svn_url":"https://github.com/grunfunke/SwiftMoment","homepage":"http://akosma.github.io/SwiftMoment","size":330,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grunfunke/SwiftMoment/pulls/1"},"html":{"href":"https://github.com/grunfunke/SwiftMoment/pull/1"},"issue":{"href":"https://api.github.com/repos/grunfunke/SwiftMoment/issues/1"},"comments":{"href":"https://api.github.com/repos/grunfunke/SwiftMoment/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/grunfunke/SwiftMoment/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/grunfunke/SwiftMoment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grunfunke/SwiftMoment/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/grunfunke/SwiftMoment/statuses/6ae49c6b284fe21bfc26742ed7e84c1c578e7b0e"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":24,"additions":248,"deletions":50,"changed_files":20}}