{"action":"opened","number":27,"pull_request":{"url":"https://api.github.com/repos/yahoo/intl-relativeformat/pulls/27","id":30724417,"html_url":"https://github.com/yahoo/intl-relativeformat/pull/27","diff_url":"https://github.com/yahoo/intl-relativeformat/pull/27.diff","patch_url":"https://github.com/yahoo/intl-relativeformat/pull/27.patch","issue_url":"https://api.github.com/repos/yahoo/intl-relativeformat/issues/27","number":27,"state":"open","locked":false,"title":"Add `now` option to format","user":{"login":"jbaudanza","id":35914,"avatar_url":"https://avatars.githubusercontent.com/u/35914?v=3","gravatar_id":"","url":"https://api.github.com/users/jbaudanza","html_url":"https://github.com/jbaudanza","followers_url":"https://api.github.com/users/jbaudanza/followers","following_url":"https://api.github.com/users/jbaudanza/following{/other_user}","gists_url":"https://api.github.com/users/jbaudanza/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaudanza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaudanza/subscriptions","organizations_url":"https://api.github.com/users/jbaudanza/orgs","repos_url":"https://api.github.com/users/jbaudanza/repos","events_url":"https://api.github.com/users/jbaudanza/events{/privacy}","received_events_url":"https://api.github.com/users/jbaudanza/received_events","type":"User","site_admin":false},"body":"This PR allows the caller to specify a custom value for `now`. \r\n\r\nThis implements the solution discussed in https://github.com/yahoo/intl-relativeformat/issues/26","created_at":"2015-03-08T18:59:28Z","updated_at":"2015-03-08T18:59:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yahoo/intl-relativeformat/pulls/27/commits","review_comments_url":"https://api.github.com/repos/yahoo/intl-relativeformat/pulls/27/comments","review_comment_url":"https://api.github.com/repos/yahoo/intl-relativeformat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yahoo/intl-relativeformat/issues/27/comments","statuses_url":"https://api.github.com/repos/yahoo/intl-relativeformat/statuses/e068e0e4fc84b0c0116879e8d385b28ef4c4c25e","head":{"label":"jbaudanza:master","ref":"master","sha":"e068e0e4fc84b0c0116879e8d385b28ef4c4c25e","user":{"login":"jbaudanza","id":35914,"avatar_url":"https://avatars.githubusercontent.com/u/35914?v=3","gravatar_id":"","url":"https://api.github.com/users/jbaudanza","html_url":"https://github.com/jbaudanza","followers_url":"https://api.github.com/users/jbaudanza/followers","following_url":"https://api.github.com/users/jbaudanza/following{/other_user}","gists_url":"https://api.github.com/users/jbaudanza/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaudanza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaudanza/subscriptions","organizations_url":"https://api.github.com/users/jbaudanza/orgs","repos_url":"https://api.github.com/users/jbaudanza/repos","events_url":"https://api.github.com/users/jbaudanza/events{/privacy}","received_events_url":"https://api.github.com/users/jbaudanza/received_events","type":"User","site_admin":false},"repo":{"id":31861214,"name":"intl-relativeformat","full_name":"jbaudanza/intl-relativeformat","owner":{"login":"jbaudanza","id":35914,"avatar_url":"https://avatars.githubusercontent.com/u/35914?v=3","gravatar_id":"","url":"https://api.github.com/users/jbaudanza","html_url":"https://github.com/jbaudanza","followers_url":"https://api.github.com/users/jbaudanza/followers","following_url":"https://api.github.com/users/jbaudanza/following{/other_user}","gists_url":"https://api.github.com/users/jbaudanza/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaudanza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaudanza/subscriptions","organizations_url":"https://api.github.com/users/jbaudanza/orgs","repos_url":"https://api.github.com/users/jbaudanza/repos","events_url":"https://api.github.com/users/jbaudanza/events{/privacy}","received_events_url":"https://api.github.com/users/jbaudanza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbaudanza/intl-relativeformat","description":"Formats JavaScript dates to relative time strings (e.g., \"3 hours ago\").","fork":true,"url":"https://api.github.com/repos/jbaudanza/intl-relativeformat","forks_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/forks","keys_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/teams","hooks_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/hooks","issue_events_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/issues/events{/number}","events_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/events","assignees_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/assignees{/user}","branches_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/branches{/branch}","tags_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/tags","blobs_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/statuses/{sha}","languages_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/languages","stargazers_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/stargazers","contributors_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/contributors","subscribers_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/subscribers","subscription_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/subscription","commits_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/contents/{+path}","compare_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/merges","archive_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/downloads","issues_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/issues{/number}","pulls_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/pulls{/number}","milestones_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/milestones{/number}","notifications_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/labels{/name}","releases_url":"https://api.github.com/repos/jbaudanza/intl-relativeformat/releases{/id}","created_at":"2015-03-08T18:55:17Z","updated_at":"2015-03-08T18:56:56Z","pushed_at":"2015-03-08T18:56:55Z","git_url":"git://github.com/jbaudanza/intl-relativeformat.git","ssh_url":"git@github.com:jbaudanza/intl-relativeformat.git","clone_url":"https://github.com/jbaudanza/intl-relativeformat.git","svn_url":"https://github.com/jbaudanza/intl-relativeformat","homepage":"http://formatjs.io/","size":901,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yahoo:master","ref":"master","sha":"45b892d6faae14297fdb3b1aaac38867423fd68a","user":{"login":"yahoo","id":16574,"avatar_url":"https://avatars.githubusercontent.com/u/16574?v=3","gravatar_id":"","url":"https://api.github.com/users/yahoo","html_url":"https://github.com/yahoo","followers_url":"https://api.github.com/users/yahoo/followers","following_url":"https://api.github.com/users/yahoo/following{/other_user}","gists_url":"https://api.github.com/users/yahoo/gists{/gist_id}","starred_url":"https://api.github.com/users/yahoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahoo/subscriptions","organizations_url":"https://api.github.com/users/yahoo/orgs","repos_url":"https://api.github.com/users/yahoo/repos","events_url":"https://api.github.com/users/yahoo/events{/privacy}","received_events_url":"https://api.github.com/users/yahoo/received_events","type":"Organization","site_admin":false},"repo":{"id":24163710,"name":"intl-relativeformat","full_name":"yahoo/intl-relativeformat","owner":{"login":"yahoo","id":16574,"avatar_url":"https://avatars.githubusercontent.com/u/16574?v=3","gravatar_id":"","url":"https://api.github.com/users/yahoo","html_url":"https://github.com/yahoo","followers_url":"https://api.github.com/users/yahoo/followers","following_url":"https://api.github.com/users/yahoo/following{/other_user}","gists_url":"https://api.github.com/users/yahoo/gists{/gist_id}","starred_url":"https://api.github.com/users/yahoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahoo/subscriptions","organizations_url":"https://api.github.com/users/yahoo/orgs","repos_url":"https://api.github.com/users/yahoo/repos","events_url":"https://api.github.com/users/yahoo/events{/privacy}","received_events_url":"https://api.github.com/users/yahoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yahoo/intl-relativeformat","description":"Formats JavaScript dates to relative time strings (e.g., \"3 hours ago\").","fork":false,"url":"https://api.github.com/repos/yahoo/intl-relativeformat","forks_url":"https://api.github.com/repos/yahoo/intl-relativeformat/forks","keys_url":"https://api.github.com/repos/yahoo/intl-relativeformat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yahoo/intl-relativeformat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yahoo/intl-relativeformat/teams","hooks_url":"https://api.github.com/repos/yahoo/intl-relativeformat/hooks","issue_events_url":"https://api.github.com/repos/yahoo/intl-relativeformat/issues/events{/number}","events_url":"https://api.github.com/repos/yahoo/intl-relativeformat/events","assignees_url":"https://api.github.com/repos/yahoo/intl-relativeformat/assignees{/user}","branches_url":"https://api.github.com/repos/yahoo/intl-relativeformat/branches{/branch}","tags_url":"https://api.github.com/repos/yahoo/intl-relativeformat/tags","blobs_url":"https://api.github.com/repos/yahoo/intl-relativeformat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yahoo/intl-relativeformat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yahoo/intl-relativeformat/git/refs{/sha}","trees_url":"https://api.github.com/repos/yahoo/intl-relativeformat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yahoo/intl-relativeformat/statuses/{sha}","languages_url":"https://api.github.com/repos/yahoo/intl-relativeformat/languages","stargazers_url":"https://api.github.com/repos/yahoo/intl-relativeformat/stargazers","contributors_url":"https://api.github.com/repos/yahoo/intl-relativeformat/contributors","subscribers_url":"https://api.github.com/repos/yahoo/intl-relativeformat/subscribers","subscription_url":"https://api.github.com/repos/yahoo/intl-relativeformat/subscription","commits_url":"https://api.github.com/repos/yahoo/intl-relativeformat/commits{/sha}","git_commits_url":"https://api.github.com/repos/yahoo/intl-relativeformat/git/commits{/sha}","comments_url":"https://api.github.com/repos/yahoo/intl-relativeformat/comments{/number}","issue_comment_url":"https://api.github.com/repos/yahoo/intl-relativeformat/issues/comments{/number}","contents_url":"https://api.github.com/repos/yahoo/intl-relativeformat/contents/{+path}","compare_url":"https://api.github.com/repos/yahoo/intl-relativeformat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yahoo/intl-relativeformat/merges","archive_url":"https://api.github.com/repos/yahoo/intl-relativeformat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yahoo/intl-relativeformat/downloads","issues_url":"https://api.github.com/repos/yahoo/intl-relativeformat/issues{/number}","pulls_url":"https://api.github.com/repos/yahoo/intl-relativeformat/pulls{/number}","milestones_url":"https://api.github.com/repos/yahoo/intl-relativeformat/milestones{/number}","notifications_url":"https://api.github.com/repos/yahoo/intl-relativeformat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yahoo/intl-relativeformat/labels{/name}","releases_url":"https://api.github.com/repos/yahoo/intl-relativeformat/releases{/id}","created_at":"2014-09-17T21:50:23Z","updated_at":"2015-03-01T04:41:19Z","pushed_at":"2015-02-09T21:09:16Z","git_url":"git://github.com/yahoo/intl-relativeformat.git","ssh_url":"git@github.com:yahoo/intl-relativeformat.git","clone_url":"https://github.com/yahoo/intl-relativeformat.git","svn_url":"https://github.com/yahoo/intl-relativeformat","homepage":"http://formatjs.io/","size":901,"stargazers_count":40,"watchers_count":40,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":3,"forks":7,"open_issues":3,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yahoo/intl-relativeformat/pulls/27"},"html":{"href":"https://github.com/yahoo/intl-relativeformat/pull/27"},"issue":{"href":"https://api.github.com/repos/yahoo/intl-relativeformat/issues/27"},"comments":{"href":"https://api.github.com/repos/yahoo/intl-relativeformat/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/yahoo/intl-relativeformat/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/yahoo/intl-relativeformat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yahoo/intl-relativeformat/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/yahoo/intl-relativeformat/statuses/e068e0e4fc84b0c0116879e8d385b28ef4c4c25e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":21,"deletions":4,"changed_files":2}}