{"action":"created","comment":{"url":"https://api.github.com/repos/cakephp/chronos/pulls/comments/48904375","id":48904375,"diff_hunk":"@@ -28,8 +28,25 @@ use Cake\\Chronos\\Chronos;\n printf(\"Now: %s\", Chronos::now());\n ```\n \n+# Differences with nesbot/barbon\n+\n+The biggest and main difference is that `Chronos` extends `DateTimeImmutable` instead of `DateTime`.\n+Immutability for date values has proven to be a great way of avoiding bugs and reduce the amount of code,\n+since developers don't have to manually copy the instance every time they need a change.\n+\n+Another important feature it offers is the `Date` class, which is used for representing dates without time (calendar dates).\n+Any time method called in this type of object is basically a no-op.\n+\n+A minor but still noticeable difference is that `Chronos` has no external dependencies, it is completely standalone.\n+\n+Finally, Chronos is faster than Carbon as it has been optimized for the creation of hundreds of intances with minimal","path":"README.md","position":15,"original_position":15,"commit_id":"4cbae12ea3749ac7c554ddb10be07cf9ae8fce7b","original_commit_id":"4cbae12ea3749ac7c554ddb10be07cf9ae8fce7b","user":{"login":"bcrowe","id":752603,"avatar_url":"https://avatars.githubusercontent.com/u/752603?v=3","gravatar_id":"","url":"https://api.github.com/users/bcrowe","html_url":"https://github.com/bcrowe","followers_url":"https://api.github.com/users/bcrowe/followers","following_url":"https://api.github.com/users/bcrowe/following{/other_user}","gists_url":"https://api.github.com/users/bcrowe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcrowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcrowe/subscriptions","organizations_url":"https://api.github.com/users/bcrowe/orgs","repos_url":"https://api.github.com/users/bcrowe/repos","events_url":"https://api.github.com/users/bcrowe/events{/privacy}","received_events_url":"https://api.github.com/users/bcrowe/received_events","type":"User","site_admin":false},"body":"\"instances\" typo","created_at":"2016-01-05T22:18:44Z","updated_at":"2016-01-05T22:18:44Z","html_url":"https://github.com/cakephp/chronos/pull/72#discussion_r48904375","pull_request_url":"https://api.github.com/repos/cakephp/chronos/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/cakephp/chronos/pulls/comments/48904375"},"html":{"href":"https://github.com/cakephp/chronos/pull/72#discussion_r48904375"},"pull_request":{"href":"https://api.github.com/repos/cakephp/chronos/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/cakephp/chronos/pulls/72","id":55150928,"html_url":"https://github.com/cakephp/chronos/pull/72","diff_url":"https://github.com/cakephp/chronos/pull/72.diff","patch_url":"https://github.com/cakephp/chronos/pull/72.patch","issue_url":"https://api.github.com/repos/cakephp/chronos/issues/72","number":72,"state":"open","locked":false,"title":"Adding short explanation with main differences with Carbon","user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-05T22:17:12Z","updated_at":"2016-01-05T22:18:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8919c199cab9fef5f6ac04a22cf127ddbcca5aa5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cakephp/chronos/pulls/72/commits","review_comments_url":"https://api.github.com/repos/cakephp/chronos/pulls/72/comments","review_comment_url":"https://api.github.com/repos/cakephp/chronos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cakephp/chronos/issues/72/comments","statuses_url":"https://api.github.com/repos/cakephp/chronos/statuses/4cbae12ea3749ac7c554ddb10be07cf9ae8fce7b","head":{"label":"cakephp:lorenzo-patch-1","ref":"lorenzo-patch-1","sha":"4cbae12ea3749ac7c554ddb10be07cf9ae8fce7b","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":42588972,"name":"chronos","full_name":"cakephp/chronos","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakephp/chronos","description":"A standalone DateTime library originally based off of carbon","fork":false,"url":"https://api.github.com/repos/cakephp/chronos","forks_url":"https://api.github.com/repos/cakephp/chronos/forks","keys_url":"https://api.github.com/repos/cakephp/chronos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/chronos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/chronos/teams","hooks_url":"https://api.github.com/repos/cakephp/chronos/hooks","issue_events_url":"https://api.github.com/repos/cakephp/chronos/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/chronos/events","assignees_url":"https://api.github.com/repos/cakephp/chronos/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/chronos/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/chronos/tags","blobs_url":"https://api.github.com/repos/cakephp/chronos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/chronos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/chronos/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/chronos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/chronos/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/chronos/languages","stargazers_url":"https://api.github.com/repos/cakephp/chronos/stargazers","contributors_url":"https://api.github.com/repos/cakephp/chronos/contributors","subscribers_url":"https://api.github.com/repos/cakephp/chronos/subscribers","subscription_url":"https://api.github.com/repos/cakephp/chronos/subscription","commits_url":"https://api.github.com/repos/cakephp/chronos/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/chronos/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/chronos/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/chronos/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/chronos/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/chronos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/chronos/merges","archive_url":"https://api.github.com/repos/cakephp/chronos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/chronos/downloads","issues_url":"https://api.github.com/repos/cakephp/chronos/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/chronos/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/chronos/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/chronos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/chronos/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/chronos/releases{/id}","created_at":"2015-09-16T13:30:45Z","updated_at":"2016-01-05T22:04:47Z","pushed_at":"2016-01-05T22:17:12Z","git_url":"git://github.com/cakephp/chronos.git","ssh_url":"git@github.com:cakephp/chronos.git","clone_url":"https://github.com/cakephp/chronos.git","svn_url":"https://github.com/cakephp/chronos","homepage":null,"size":318,"stargazers_count":47,"watchers_count":47,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":47,"default_branch":"master"}},"base":{"label":"cakephp:master","ref":"master","sha":"ceb3d02e497f6a44ccc0704f8299ec3b330c9400","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":42588972,"name":"chronos","full_name":"cakephp/chronos","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakephp/chronos","description":"A standalone DateTime library originally based off of carbon","fork":false,"url":"https://api.github.com/repos/cakephp/chronos","forks_url":"https://api.github.com/repos/cakephp/chronos/forks","keys_url":"https://api.github.com/repos/cakephp/chronos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/chronos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/chronos/teams","hooks_url":"https://api.github.com/repos/cakephp/chronos/hooks","issue_events_url":"https://api.github.com/repos/cakephp/chronos/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/chronos/events","assignees_url":"https://api.github.com/repos/cakephp/chronos/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/chronos/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/chronos/tags","blobs_url":"https://api.github.com/repos/cakephp/chronos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/chronos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/chronos/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/chronos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/chronos/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/chronos/languages","stargazers_url":"https://api.github.com/repos/cakephp/chronos/stargazers","contributors_url":"https://api.github.com/repos/cakephp/chronos/contributors","subscribers_url":"https://api.github.com/repos/cakephp/chronos/subscribers","subscription_url":"https://api.github.com/repos/cakephp/chronos/subscription","commits_url":"https://api.github.com/repos/cakephp/chronos/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/chronos/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/chronos/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/chronos/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/chronos/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/chronos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/chronos/merges","archive_url":"https://api.github.com/repos/cakephp/chronos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/chronos/downloads","issues_url":"https://api.github.com/repos/cakephp/chronos/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/chronos/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/chronos/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/chronos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/chronos/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/chronos/releases{/id}","created_at":"2015-09-16T13:30:45Z","updated_at":"2016-01-05T22:04:47Z","pushed_at":"2016-01-05T22:17:12Z","git_url":"git://github.com/cakephp/chronos.git","ssh_url":"git@github.com:cakephp/chronos.git","clone_url":"https://github.com/cakephp/chronos.git","svn_url":"https://github.com/cakephp/chronos","homepage":null,"size":318,"stargazers_count":47,"watchers_count":47,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/chronos/pulls/72"},"html":{"href":"https://github.com/cakephp/chronos/pull/72"},"issue":{"href":"https://api.github.com/repos/cakephp/chronos/issues/72"},"comments":{"href":"https://api.github.com/repos/cakephp/chronos/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/chronos/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/chronos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cakephp/chronos/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/chronos/statuses/4cbae12ea3749ac7c554ddb10be07cf9ae8fce7b"}}}}