{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/comments/86191626","pull_request_review_id":6861631,"id":86191626,"diff_hunk":"@@ -6,6 +6,88 @@\n  */\n exports.isStar = true;\n \n+var TimeRange = require('./TimeRange.js');\n+var utils = require('./utils.js');\n+\n+var TIME_REGEX = /(?:([ПН|ВТ|СР|ЧТ|ПТ|СБ|ВС]{2})\\s)?(\\d{2}):(\\d{2})\\+(\\d{1,2})/;\n+var MINUTES_IN_HOUR = 60;\n+var MINUTES_IN_DAY = 24 * MINUTES_IN_HOUR;\n+var DAYS_OF_WEEK = ['ПН', 'ВТ', 'СР', 'ЧТ', 'ПТ', 'СБ', 'ВС'];\n+\n+function convertDayToMinutes(dayOfWeek) {\n+    return DAYS_OF_WEEK.indexOf(dayOfWeek) * MINUTES_IN_DAY;\n+}\n+\n+function convertHoursToMinutes(hours) {\n+    return hours * MINUTES_IN_HOUR;\n+}\n+\n+function parseDate(dateAsString) {\n+    var timePattern = dateAsString.match(TIME_REGEX);\n+\n+    return {\n+        dayOfWeek: timePattern[1],\n+        hours: parseInt(timePattern[2]),\n+        minutes: parseInt(timePattern[3]),\n+        timeZone: parseInt(timePattern[4])\n+    };\n+}\n+\n+function getTimeInMinutes(input, bankTimeZone) {","path":"robbery.js","position":31,"original_position":31,"commit_id":"67f3da6a3c324be29f16d5c654e0aaffee14ebfc","original_commit_id":"67f3da6a3c324be29f16d5c654e0aaffee14ebfc","user":{"login":"gogoleff","id":4534405,"avatar_url":"https://avatars.githubusercontent.com/u/4534405?v=3","gravatar_id":"","url":"https://api.github.com/users/gogoleff","html_url":"https://github.com/gogoleff","followers_url":"https://api.github.com/users/gogoleff/followers","following_url":"https://api.github.com/users/gogoleff/following{/other_user}","gists_url":"https://api.github.com/users/gogoleff/gists{/gist_id}","starred_url":"https://api.github.com/users/gogoleff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogoleff/subscriptions","organizations_url":"https://api.github.com/users/gogoleff/orgs","repos_url":"https://api.github.com/users/gogoleff/repos","events_url":"https://api.github.com/users/gogoleff/events{/privacy}","received_events_url":"https://api.github.com/users/gogoleff/received_events","type":"User","site_admin":false},"body":"> Jsdoc есть только у функций, объявленных организаторами\r\n\r\nИ?\r\n\r\n> Чтобы взять время в этом часовом поясе\r\n\r\nДаже в твоём ответе нет ничего про банк","created_at":"2016-11-02T17:01:57Z","updated_at":"2016-11-02T17:01:57Z","html_url":"https://github.com/urfu-2016/javascript-task-3/pull/9#discussion_r86191626","pull_request_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/comments/86191626"},"html":{"href":"https://github.com/urfu-2016/javascript-task-3/pull/9#discussion_r86191626"},"pull_request":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/9","id":90474633,"html_url":"https://github.com/urfu-2016/javascript-task-3/pull/9","diff_url":"https://github.com/urfu-2016/javascript-task-3/pull/9.diff","patch_url":"https://github.com/urfu-2016/javascript-task-3/pull/9.patch","issue_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues/9","number":9,"state":"open","locked":false,"title":"Бикташев Галлям","user":{"login":"Gebon","id":5419623,"avatar_url":"https://avatars.githubusercontent.com/u/5419623?v=3","gravatar_id":"","url":"https://api.github.com/users/Gebon","html_url":"https://github.com/Gebon","followers_url":"https://api.github.com/users/Gebon/followers","following_url":"https://api.github.com/users/Gebon/following{/other_user}","gists_url":"https://api.github.com/users/Gebon/gists{/gist_id}","starred_url":"https://api.github.com/users/Gebon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gebon/subscriptions","organizations_url":"https://api.github.com/users/Gebon/orgs","repos_url":"https://api.github.com/users/Gebon/repos","events_url":"https://api.github.com/users/Gebon/events{/privacy}","received_events_url":"https://api.github.com/users/Gebon/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-22T08:23:07Z","updated_at":"2016-11-02T17:01:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af56ed032737e7df5678e4e2800859b6d3e21a6c","assignee":{"login":"gogoleff","id":4534405,"avatar_url":"https://avatars.githubusercontent.com/u/4534405?v=3","gravatar_id":"","url":"https://api.github.com/users/gogoleff","html_url":"https://github.com/gogoleff","followers_url":"https://api.github.com/users/gogoleff/followers","following_url":"https://api.github.com/users/gogoleff/following{/other_user}","gists_url":"https://api.github.com/users/gogoleff/gists{/gist_id}","starred_url":"https://api.github.com/users/gogoleff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogoleff/subscriptions","organizations_url":"https://api.github.com/users/gogoleff/orgs","repos_url":"https://api.github.com/users/gogoleff/repos","events_url":"https://api.github.com/users/gogoleff/events{/privacy}","received_events_url":"https://api.github.com/users/gogoleff/received_events","type":"User","site_admin":false},"assignees":[{"login":"gogoleff","id":4534405,"avatar_url":"https://avatars.githubusercontent.com/u/4534405?v=3","gravatar_id":"","url":"https://api.github.com/users/gogoleff","html_url":"https://github.com/gogoleff","followers_url":"https://api.github.com/users/gogoleff/followers","following_url":"https://api.github.com/users/gogoleff/following{/other_user}","gists_url":"https://api.github.com/users/gogoleff/gists{/gist_id}","starred_url":"https://api.github.com/users/gogoleff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogoleff/subscriptions","organizations_url":"https://api.github.com/users/gogoleff/orgs","repos_url":"https://api.github.com/users/gogoleff/repos","events_url":"https://api.github.com/users/gogoleff/events{/privacy}","received_events_url":"https://api.github.com/users/gogoleff/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/9/commits","review_comments_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/9/comments","review_comment_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues/9/comments","statuses_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/statuses/67f3da6a3c324be29f16d5c654e0aaffee14ebfc","head":{"label":"Gebon:master","ref":"master","sha":"67f3da6a3c324be29f16d5c654e0aaffee14ebfc","user":{"login":"Gebon","id":5419623,"avatar_url":"https://avatars.githubusercontent.com/u/5419623?v=3","gravatar_id":"","url":"https://api.github.com/users/Gebon","html_url":"https://github.com/Gebon","followers_url":"https://api.github.com/users/Gebon/followers","following_url":"https://api.github.com/users/Gebon/following{/other_user}","gists_url":"https://api.github.com/users/Gebon/gists{/gist_id}","starred_url":"https://api.github.com/users/Gebon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gebon/subscriptions","organizations_url":"https://api.github.com/users/Gebon/orgs","repos_url":"https://api.github.com/users/Gebon/repos","events_url":"https://api.github.com/users/Gebon/events{/privacy}","received_events_url":"https://api.github.com/users/Gebon/received_events","type":"User","site_admin":false},"repo":{"id":71534785,"name":"javascript-task-3","full_name":"Gebon/javascript-task-3","owner":{"login":"Gebon","id":5419623,"avatar_url":"https://avatars.githubusercontent.com/u/5419623?v=3","gravatar_id":"","url":"https://api.github.com/users/Gebon","html_url":"https://github.com/Gebon","followers_url":"https://api.github.com/users/Gebon/followers","following_url":"https://api.github.com/users/Gebon/following{/other_user}","gists_url":"https://api.github.com/users/Gebon/gists{/gist_id}","starred_url":"https://api.github.com/users/Gebon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gebon/subscriptions","organizations_url":"https://api.github.com/users/Gebon/orgs","repos_url":"https://api.github.com/users/Gebon/repos","events_url":"https://api.github.com/users/Gebon/events{/privacy}","received_events_url":"https://api.github.com/users/Gebon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Gebon/javascript-task-3","description":"Задача «0b11 друзей Оушена»","fork":true,"url":"https://api.github.com/repos/Gebon/javascript-task-3","forks_url":"https://api.github.com/repos/Gebon/javascript-task-3/forks","keys_url":"https://api.github.com/repos/Gebon/javascript-task-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gebon/javascript-task-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gebon/javascript-task-3/teams","hooks_url":"https://api.github.com/repos/Gebon/javascript-task-3/hooks","issue_events_url":"https://api.github.com/repos/Gebon/javascript-task-3/issues/events{/number}","events_url":"https://api.github.com/repos/Gebon/javascript-task-3/events","assignees_url":"https://api.github.com/repos/Gebon/javascript-task-3/assignees{/user}","branches_url":"https://api.github.com/repos/Gebon/javascript-task-3/branches{/branch}","tags_url":"https://api.github.com/repos/Gebon/javascript-task-3/tags","blobs_url":"https://api.github.com/repos/Gebon/javascript-task-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gebon/javascript-task-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gebon/javascript-task-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gebon/javascript-task-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gebon/javascript-task-3/statuses/{sha}","languages_url":"https://api.github.com/repos/Gebon/javascript-task-3/languages","stargazers_url":"https://api.github.com/repos/Gebon/javascript-task-3/stargazers","contributors_url":"https://api.github.com/repos/Gebon/javascript-task-3/contributors","subscribers_url":"https://api.github.com/repos/Gebon/javascript-task-3/subscribers","subscription_url":"https://api.github.com/repos/Gebon/javascript-task-3/subscription","commits_url":"https://api.github.com/repos/Gebon/javascript-task-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gebon/javascript-task-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gebon/javascript-task-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gebon/javascript-task-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gebon/javascript-task-3/contents/{+path}","compare_url":"https://api.github.com/repos/Gebon/javascript-task-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gebon/javascript-task-3/merges","archive_url":"https://api.github.com/repos/Gebon/javascript-task-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gebon/javascript-task-3/downloads","issues_url":"https://api.github.com/repos/Gebon/javascript-task-3/issues{/number}","pulls_url":"https://api.github.com/repos/Gebon/javascript-task-3/pulls{/number}","milestones_url":"https://api.github.com/repos/Gebon/javascript-task-3/milestones{/number}","notifications_url":"https://api.github.com/repos/Gebon/javascript-task-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gebon/javascript-task-3/labels{/name}","releases_url":"https://api.github.com/repos/Gebon/javascript-task-3/releases{/id}","deployments_url":"https://api.github.com/repos/Gebon/javascript-task-3/deployments","created_at":"2016-10-21T06:03:35Z","updated_at":"2016-10-21T06:03:36Z","pushed_at":"2016-11-02T15:23:18Z","git_url":"git://github.com/Gebon/javascript-task-3.git","ssh_url":"git@github.com:Gebon/javascript-task-3.git","clone_url":"https://github.com/Gebon/javascript-task-3.git","svn_url":"https://github.com/Gebon/javascript-task-3","homepage":"","size":25,"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":"urfu-2016:master","ref":"master","sha":"64ecd1ed227f56eda591afe15cc7927ddce1cf31","user":{"login":"urfu-2016","id":22170529,"avatar_url":"https://avatars.githubusercontent.com/u/22170529?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2016","html_url":"https://github.com/urfu-2016","followers_url":"https://api.github.com/users/urfu-2016/followers","following_url":"https://api.github.com/users/urfu-2016/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2016/subscriptions","organizations_url":"https://api.github.com/users/urfu-2016/orgs","repos_url":"https://api.github.com/users/urfu-2016/repos","events_url":"https://api.github.com/users/urfu-2016/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2016/received_events","type":"Organization","site_admin":false},"repo":{"id":71448848,"name":"javascript-task-3","full_name":"urfu-2016/javascript-task-3","owner":{"login":"urfu-2016","id":22170529,"avatar_url":"https://avatars.githubusercontent.com/u/22170529?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2016","html_url":"https://github.com/urfu-2016","followers_url":"https://api.github.com/users/urfu-2016/followers","following_url":"https://api.github.com/users/urfu-2016/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2016/subscriptions","organizations_url":"https://api.github.com/users/urfu-2016/orgs","repos_url":"https://api.github.com/users/urfu-2016/repos","events_url":"https://api.github.com/users/urfu-2016/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2016/javascript-task-3","description":"Задача «0b11 друзей Оушена»","fork":false,"url":"https://api.github.com/repos/urfu-2016/javascript-task-3","forks_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/forks","keys_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/teams","hooks_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/hooks","issue_events_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/events","assignees_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/tags","blobs_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/languages","stargazers_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/stargazers","contributors_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/contributors","subscribers_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/subscribers","subscription_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/subscription","commits_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/merges","archive_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/downloads","issues_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/deployments","created_at":"2016-10-20T09:49:39Z","updated_at":"2016-10-23T04:31:46Z","pushed_at":"2016-11-02T16:58:49Z","git_url":"git://github.com/urfu-2016/javascript-task-3.git","ssh_url":"git@github.com:urfu-2016/javascript-task-3.git","clone_url":"https://github.com/urfu-2016/javascript-task-3.git","svn_url":"https://github.com/urfu-2016/javascript-task-3","homepage":"","size":111,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":95,"mirror_url":null,"open_issues_count":37,"forks":95,"open_issues":37,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/9"},"html":{"href":"https://github.com/urfu-2016/javascript-task-3/pull/9"},"issue":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues/9"},"comments":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/statuses/67f3da6a3c324be29f16d5c654e0aaffee14ebfc"}}}}
{"actor":{"display_login":"gogoleff"}}