{"action":"created","comment":{"url":"https://api.github.com/repos/privat/nit/pulls/comments/22870617","id":22870617,"diff_hunk":"@@ -0,0 +1,104 @@\n+#Module date_f has the basic date fuction implementation\n+module date_f\n+\n+#The main class Date\n+public class Date\n+\n+private var years_In : Int \n+private var mounth_In : Int\n+private var day_In : Int\n+\n+private var hours_In : nullable Int = 0\n+private var min_In : nullable Int = 0\n+private var sec_In : nullable Int = 0\n+\n+\t#Return the with String type\n+\tredef fun to_s do\n+\n+\tvar y = years_In.to_s\n+\tvar m = mounth_In.to_s\n+\tvar d = day_In.to_s\n+\n+\treturn y +\"/\"+ m +\"/\"+ d\n+\tend\n+\t\n+\t#Compare two Date\n+\t# forms : 1 for day, 2 for mounth, 3 for years\n+\tfun date_diff( d2 : Date, forms : Int ) : Int do","path":"Mehdi_test/date_f.nit","position":27,"original_position":27,"commit_id":"330e0f7003bd7994300a1747750fb2bc662b87a8","original_commit_id":"330e0f7003bd7994300a1747750fb2bc662b87a8","user":{"login":"Morriar","id":583144,"avatar_url":"https://avatars.githubusercontent.com/u/583144?v=3","gravatar_id":"","url":"https://api.github.com/users/Morriar","html_url":"https://github.com/Morriar","followers_url":"https://api.github.com/users/Morriar/followers","following_url":"https://api.github.com/users/Morriar/following{/other_user}","gists_url":"https://api.github.com/users/Morriar/gists{/gist_id}","starred_url":"https://api.github.com/users/Morriar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Morriar/subscriptions","organizations_url":"https://api.github.com/users/Morriar/orgs","repos_url":"https://api.github.com/users/Morriar/repos","events_url":"https://api.github.com/users/Morriar/events{/privacy}","received_events_url":"https://api.github.com/users/Morriar/received_events","type":"User","site_admin":false},"body":"No spaces before \":\"","created_at":"2015-01-13T15:51:10Z","updated_at":"2015-01-13T15:51:10Z","html_url":"https://github.com/privat/nit/pull/1100#discussion_r22870617","pull_request_url":"https://api.github.com/repos/privat/nit/pulls/1100","_links":{"self":{"href":"https://api.github.com/repos/privat/nit/pulls/comments/22870617"},"html":{"href":"https://github.com/privat/nit/pull/1100#discussion_r22870617"},"pull_request":{"href":"https://api.github.com/repos/privat/nit/pulls/1100"}}},"pull_request":{"url":"https://api.github.com/repos/privat/nit/pulls/1100","id":27279827,"html_url":"https://github.com/privat/nit/pull/1100","diff_url":"https://github.com/privat/nit/pull/1100.diff","patch_url":"https://github.com/privat/nit/pull/1100.patch","issue_url":"https://api.github.com/repos/privat/nit/issues/1100","number":1100,"state":"open","locked":false,"title":"Date Lib","user":{"login":"MehdiAit","id":3407293,"avatar_url":"https://avatars.githubusercontent.com/u/3407293?v=3","gravatar_id":"","url":"https://api.github.com/users/MehdiAit","html_url":"https://github.com/MehdiAit","followers_url":"https://api.github.com/users/MehdiAit/followers","following_url":"https://api.github.com/users/MehdiAit/following{/other_user}","gists_url":"https://api.github.com/users/MehdiAit/gists{/gist_id}","starred_url":"https://api.github.com/users/MehdiAit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MehdiAit/subscriptions","organizations_url":"https://api.github.com/users/MehdiAit/orgs","repos_url":"https://api.github.com/users/MehdiAit/repos","events_url":"https://api.github.com/users/MehdiAit/events{/privacy}","received_events_url":"https://api.github.com/users/MehdiAit/received_events","type":"User","site_admin":false},"body":"les fonctions ce trouve dans le module date_f.nit.","created_at":"2015-01-13T15:40:50Z","updated_at":"2015-01-13T15:51:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"561c20d0092bd8bc09a3b723e446f07db7119e57","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/privat/nit/pulls/1100/commits","review_comments_url":"https://api.github.com/repos/privat/nit/pulls/1100/comments","review_comment_url":"https://api.github.com/repos/privat/nit/pulls/comments/{number}","comments_url":"https://api.github.com/repos/privat/nit/issues/1100/comments","statuses_url":"https://api.github.com/repos/privat/nit/statuses/330e0f7003bd7994300a1747750fb2bc662b87a8","head":{"label":"MehdiAit:master","ref":"master","sha":"330e0f7003bd7994300a1747750fb2bc662b87a8","user":{"login":"MehdiAit","id":3407293,"avatar_url":"https://avatars.githubusercontent.com/u/3407293?v=3","gravatar_id":"","url":"https://api.github.com/users/MehdiAit","html_url":"https://github.com/MehdiAit","followers_url":"https://api.github.com/users/MehdiAit/followers","following_url":"https://api.github.com/users/MehdiAit/following{/other_user}","gists_url":"https://api.github.com/users/MehdiAit/gists{/gist_id}","starred_url":"https://api.github.com/users/MehdiAit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MehdiAit/subscriptions","organizations_url":"https://api.github.com/users/MehdiAit/orgs","repos_url":"https://api.github.com/users/MehdiAit/repos","events_url":"https://api.github.com/users/MehdiAit/events{/privacy}","received_events_url":"https://api.github.com/users/MehdiAit/received_events","type":"User","site_admin":false},"repo":{"id":29065535,"name":"nit","full_name":"MehdiAit/nit","owner":{"login":"MehdiAit","id":3407293,"avatar_url":"https://avatars.githubusercontent.com/u/3407293?v=3","gravatar_id":"","url":"https://api.github.com/users/MehdiAit","html_url":"https://github.com/MehdiAit","followers_url":"https://api.github.com/users/MehdiAit/followers","following_url":"https://api.github.com/users/MehdiAit/following{/other_user}","gists_url":"https://api.github.com/users/MehdiAit/gists{/gist_id}","starred_url":"https://api.github.com/users/MehdiAit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MehdiAit/subscriptions","organizations_url":"https://api.github.com/users/MehdiAit/orgs","repos_url":"https://api.github.com/users/MehdiAit/repos","events_url":"https://api.github.com/users/MehdiAit/events{/privacy}","received_events_url":"https://api.github.com/users/MehdiAit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MehdiAit/nit","description":"Nit language","fork":true,"url":"https://api.github.com/repos/MehdiAit/nit","forks_url":"https://api.github.com/repos/MehdiAit/nit/forks","keys_url":"https://api.github.com/repos/MehdiAit/nit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MehdiAit/nit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MehdiAit/nit/teams","hooks_url":"https://api.github.com/repos/MehdiAit/nit/hooks","issue_events_url":"https://api.github.com/repos/MehdiAit/nit/issues/events{/number}","events_url":"https://api.github.com/repos/MehdiAit/nit/events","assignees_url":"https://api.github.com/repos/MehdiAit/nit/assignees{/user}","branches_url":"https://api.github.com/repos/MehdiAit/nit/branches{/branch}","tags_url":"https://api.github.com/repos/MehdiAit/nit/tags","blobs_url":"https://api.github.com/repos/MehdiAit/nit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MehdiAit/nit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MehdiAit/nit/git/refs{/sha}","trees_url":"https://api.github.com/repos/MehdiAit/nit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MehdiAit/nit/statuses/{sha}","languages_url":"https://api.github.com/repos/MehdiAit/nit/languages","stargazers_url":"https://api.github.com/repos/MehdiAit/nit/stargazers","contributors_url":"https://api.github.com/repos/MehdiAit/nit/contributors","subscribers_url":"https://api.github.com/repos/MehdiAit/nit/subscribers","subscription_url":"https://api.github.com/repos/MehdiAit/nit/subscription","commits_url":"https://api.github.com/repos/MehdiAit/nit/commits{/sha}","git_commits_url":"https://api.github.com/repos/MehdiAit/nit/git/commits{/sha}","comments_url":"https://api.github.com/repos/MehdiAit/nit/comments{/number}","issue_comment_url":"https://api.github.com/repos/MehdiAit/nit/issues/comments/{number}","contents_url":"https://api.github.com/repos/MehdiAit/nit/contents/{+path}","compare_url":"https://api.github.com/repos/MehdiAit/nit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MehdiAit/nit/merges","archive_url":"https://api.github.com/repos/MehdiAit/nit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MehdiAit/nit/downloads","issues_url":"https://api.github.com/repos/MehdiAit/nit/issues{/number}","pulls_url":"https://api.github.com/repos/MehdiAit/nit/pulls{/number}","milestones_url":"https://api.github.com/repos/MehdiAit/nit/milestones{/number}","notifications_url":"https://api.github.com/repos/MehdiAit/nit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MehdiAit/nit/labels{/name}","releases_url":"https://api.github.com/repos/MehdiAit/nit/releases{/id}","created_at":"2015-01-10T17:51:56Z","updated_at":"2015-01-13T15:33:53Z","pushed_at":"2015-01-13T15:35:58Z","git_url":"git://github.com/MehdiAit/nit.git","ssh_url":"git@github.com:MehdiAit/nit.git","clone_url":"https://github.com/MehdiAit/nit.git","svn_url":"https://github.com/MehdiAit/nit","homepage":"http://nitlanguage.org","size":54251,"stargazers_count":1,"watchers_count":1,"language":"C","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":1,"default_branch":"master"}},"base":{"label":"privat:master","ref":"master","sha":"aaaff8e681fc583e8104ff324e7dd2ce8e87eeb7","user":{"login":"privat","id":135828,"avatar_url":"https://avatars.githubusercontent.com/u/135828?v=3","gravatar_id":"","url":"https://api.github.com/users/privat","html_url":"https://github.com/privat","followers_url":"https://api.github.com/users/privat/followers","following_url":"https://api.github.com/users/privat/following{/other_user}","gists_url":"https://api.github.com/users/privat/gists{/gist_id}","starred_url":"https://api.github.com/users/privat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/privat/subscriptions","organizations_url":"https://api.github.com/users/privat/orgs","repos_url":"https://api.github.com/users/privat/repos","events_url":"https://api.github.com/users/privat/events{/privacy}","received_events_url":"https://api.github.com/users/privat/received_events","type":"User","site_admin":false},"repo":{"id":328597,"name":"nit","full_name":"privat/nit","owner":{"login":"privat","id":135828,"avatar_url":"https://avatars.githubusercontent.com/u/135828?v=3","gravatar_id":"","url":"https://api.github.com/users/privat","html_url":"https://github.com/privat","followers_url":"https://api.github.com/users/privat/followers","following_url":"https://api.github.com/users/privat/following{/other_user}","gists_url":"https://api.github.com/users/privat/gists{/gist_id}","starred_url":"https://api.github.com/users/privat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/privat/subscriptions","organizations_url":"https://api.github.com/users/privat/orgs","repos_url":"https://api.github.com/users/privat/repos","events_url":"https://api.github.com/users/privat/events{/privacy}","received_events_url":"https://api.github.com/users/privat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/privat/nit","description":"Nit language","fork":false,"url":"https://api.github.com/repos/privat/nit","forks_url":"https://api.github.com/repos/privat/nit/forks","keys_url":"https://api.github.com/repos/privat/nit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/privat/nit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/privat/nit/teams","hooks_url":"https://api.github.com/repos/privat/nit/hooks","issue_events_url":"https://api.github.com/repos/privat/nit/issues/events{/number}","events_url":"https://api.github.com/repos/privat/nit/events","assignees_url":"https://api.github.com/repos/privat/nit/assignees{/user}","branches_url":"https://api.github.com/repos/privat/nit/branches{/branch}","tags_url":"https://api.github.com/repos/privat/nit/tags","blobs_url":"https://api.github.com/repos/privat/nit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/privat/nit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/privat/nit/git/refs{/sha}","trees_url":"https://api.github.com/repos/privat/nit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/privat/nit/statuses/{sha}","languages_url":"https://api.github.com/repos/privat/nit/languages","stargazers_url":"https://api.github.com/repos/privat/nit/stargazers","contributors_url":"https://api.github.com/repos/privat/nit/contributors","subscribers_url":"https://api.github.com/repos/privat/nit/subscribers","subscription_url":"https://api.github.com/repos/privat/nit/subscription","commits_url":"https://api.github.com/repos/privat/nit/commits{/sha}","git_commits_url":"https://api.github.com/repos/privat/nit/git/commits{/sha}","comments_url":"https://api.github.com/repos/privat/nit/comments{/number}","issue_comment_url":"https://api.github.com/repos/privat/nit/issues/comments/{number}","contents_url":"https://api.github.com/repos/privat/nit/contents/{+path}","compare_url":"https://api.github.com/repos/privat/nit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/privat/nit/merges","archive_url":"https://api.github.com/repos/privat/nit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/privat/nit/downloads","issues_url":"https://api.github.com/repos/privat/nit/issues{/number}","pulls_url":"https://api.github.com/repos/privat/nit/pulls{/number}","milestones_url":"https://api.github.com/repos/privat/nit/milestones{/number}","notifications_url":"https://api.github.com/repos/privat/nit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/privat/nit/labels{/name}","releases_url":"https://api.github.com/repos/privat/nit/releases{/id}","created_at":"2009-10-06T15:03:00Z","updated_at":"2015-01-13T14:04:36Z","pushed_at":"2015-01-13T14:04:36Z","git_url":"git://github.com/privat/nit.git","ssh_url":"git@github.com:privat/nit.git","clone_url":"https://github.com/privat/nit.git","svn_url":"https://github.com/privat/nit","homepage":"http://nitlanguage.org","size":73001,"stargazers_count":63,"watchers_count":63,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":101,"forks":37,"open_issues":101,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/privat/nit/pulls/1100"},"html":{"href":"https://github.com/privat/nit/pull/1100"},"issue":{"href":"https://api.github.com/repos/privat/nit/issues/1100"},"comments":{"href":"https://api.github.com/repos/privat/nit/issues/1100/comments"},"review_comments":{"href":"https://api.github.com/repos/privat/nit/pulls/1100/comments"},"review_comment":{"href":"https://api.github.com/repos/privat/nit/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/privat/nit/pulls/1100/commits"},"statuses":{"href":"https://api.github.com/repos/privat/nit/statuses/330e0f7003bd7994300a1747750fb2bc662b87a8"}}}}