{"action":"created","comment":{"url":"https://api.github.com/repos/privat/nit/pulls/comments/29581000","id":29581000,"diff_hunk":"@@ -0,0 +1,163 @@\n+# This file is part of NIT ( http://www.nitlanguage.org ).\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+# Date manipulation\n+module date\n+\n+# The main class Date (comming soon...)\n+#\n+# \tvar d = new Date(2014, 01, 09)\n+# \tassert d.to_s == \"2014/01/09\"\n+#\n+class Date\n+\tsuper Comparable\n+\n+\t# Years as an integer ex: 1989\n+\tvar year: Int \n+\n+\t# Months as an integer ex: \"3\" for March\n+\tvar month: Int\n+\n+\t# Days as an integer \n+\tvar days: Int \n+\n+\t# Hours as an integer\n+\tvar hours: Int = 0\n+\t\n+\t# Minutes as an integer \n+\tvar minutes: Int = 0\n+\n+\t# Secound as an integer \n+\tvar sec: Int = 0\n+\n+\t# UTC time zone\n+\tvar time_zone = \"Z\"\n+\n+\t# for set the time (hours, min, sec) ","path":"lib/date.nit","position":47,"original_position":47,"commit_id":"a30bcb8e2a34de4c517e6d0045b7418cc1fe01e1","original_commit_id":"a30bcb8e2a34de4c517e6d0045b7418cc1fe01e1","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":"To* set the time","created_at":"2015-05-04T12:39:55Z","updated_at":"2015-05-04T12:39:55Z","html_url":"https://github.com/privat/nit/pull/1100#discussion_r29581000","pull_request_url":"https://api.github.com/repos/privat/nit/pulls/1100","_links":{"self":{"href":"https://api.github.com/repos/privat/nit/pulls/comments/29581000"},"html":{"href":"https://github.com/privat/nit/pull/1100#discussion_r29581000"},"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-05-04T12:39:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec3ad5054c4379c93aa378db51626d5260dc81da","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/a30bcb8e2a34de4c517e6d0045b7418cc1fe01e1","head":{"label":"MehdiAit:master","ref":"master","sha":"a30bcb8e2a34de4c517e6d0045b7418cc1fe01e1","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-05-01T20:56:01Z","pushed_at":"2015-05-01T20:56:01Z","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":55266,"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":"faf746de617a163896dd409c540f254e78f310a1","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-04-25T07:57:17Z","pushed_at":"2015-05-02T11:58:11Z","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":84831,"stargazers_count":65,"watchers_count":65,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":108,"forks":40,"open_issues":108,"watchers":65,"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/a30bcb8e2a34de4c517e6d0045b7418cc1fe01e1"}}}}