{"action":"created","comment":{"url":"https://api.github.com/repos/minetest/minetest/pulls/comments/30462412","id":30462412,"diff_hunk":"@@ -679,19 +679,35 @@ core.register_chatcommand(\"status\", {\n })\n \n core.register_chatcommand(\"time\", {\n-\tparams = \"<0...24000>\",\n+\tparams = \"<0..23>:<0..59>\",\n \tdescription = \"set time of day\",\n \tprivs = {settime=true},\n \tfunc = function(name, param)\n \t\tif param == \"\" then\n-\t\t\treturn false, \"Missing time.\"\n+\t\t\tlocal current_time  = math.floor(core.get_timeofday() * 1440)\n+\t\t\treturn true, (\"Current time is %2d:%2d\"):format((current_time - (current_time % 60)) / 60,(current_time % 60))","path":"builtin/game/chatcommands.lua","position":39,"original_position":39,"commit_id":"4cd8258b7547fe8a5a0c246ee7555537817c4f35","original_commit_id":"4cd8258b7547fe8a5a0c246ee7555537817c4f35","user":{"login":"est31","id":8872119,"avatar_url":"https://avatars.githubusercontent.com/u/8872119?v=3","gravatar_id":"","url":"https://api.github.com/users/est31","html_url":"https://github.com/est31","followers_url":"https://api.github.com/users/est31/followers","following_url":"https://api.github.com/users/est31/following{/other_user}","gists_url":"https://api.github.com/users/est31/gists{/gist_id}","starred_url":"https://api.github.com/users/est31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/est31/subscriptions","organizations_url":"https://api.github.com/users/est31/orgs","repos_url":"https://api.github.com/users/est31/repos","events_url":"https://api.github.com/users/est31/events{/privacy}","received_events_url":"https://api.github.com/users/est31/received_events","type":"User","site_admin":false},"body":"this line is too long, can you split it up? also you miss a space between `,` and `(`","created_at":"2015-05-16T16:35:48Z","updated_at":"2015-05-16T16:35:48Z","html_url":"https://github.com/minetest/minetest/pull/2707#discussion_r30462412","pull_request_url":"https://api.github.com/repos/minetest/minetest/pulls/2707","_links":{"self":{"href":"https://api.github.com/repos/minetest/minetest/pulls/comments/30462412"},"html":{"href":"https://github.com/minetest/minetest/pull/2707#discussion_r30462412"},"pull_request":{"href":"https://api.github.com/repos/minetest/minetest/pulls/2707"}}},"pull_request":{"url":"https://api.github.com/repos/minetest/minetest/pulls/2707","id":35570837,"html_url":"https://github.com/minetest/minetest/pull/2707","diff_url":"https://github.com/minetest/minetest/pull/2707.diff","patch_url":"https://github.com/minetest/minetest/pull/2707.patch","issue_url":"https://api.github.com/repos/minetest/minetest/issues/2707","number":2707,"state":"open","locked":false,"title":"Modified input and output format for /time command","user":{"login":"LeMagnesium","id":6785985,"avatar_url":"https://avatars.githubusercontent.com/u/6785985?v=3","gravatar_id":"","url":"https://api.github.com/users/LeMagnesium","html_url":"https://github.com/LeMagnesium","followers_url":"https://api.github.com/users/LeMagnesium/followers","following_url":"https://api.github.com/users/LeMagnesium/following{/other_user}","gists_url":"https://api.github.com/users/LeMagnesium/gists{/gist_id}","starred_url":"https://api.github.com/users/LeMagnesium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeMagnesium/subscriptions","organizations_url":"https://api.github.com/users/LeMagnesium/orgs","repos_url":"https://api.github.com/users/LeMagnesium/repos","events_url":"https://api.github.com/users/LeMagnesium/events{/privacy}","received_events_url":"https://api.github.com/users/LeMagnesium/received_events","type":"User","site_admin":false},"body":" - /time command now receives parameters with the format <hour>:<minutes>, and if\r\n   it is invoked with no parameters, returns the actual time converted to the same format.\r\n\r\nSolves #2700 for @Megaf 's request about a way to get the current time and @est31 's idea of a new format.","created_at":"2015-05-16T13:05:46Z","updated_at":"2015-05-16T16:35:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f785f5aaf2393fc15d939164ed42f9c4f8b07a15","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/minetest/minetest/pulls/2707/commits","review_comments_url":"https://api.github.com/repos/minetest/minetest/pulls/2707/comments","review_comment_url":"https://api.github.com/repos/minetest/minetest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/minetest/minetest/issues/2707/comments","statuses_url":"https://api.github.com/repos/minetest/minetest/statuses/4cd8258b7547fe8a5a0c246ee7555537817c4f35","head":{"label":"LeMagnesium:new_slash_time_format","ref":"new_slash_time_format","sha":"4cd8258b7547fe8a5a0c246ee7555537817c4f35","user":{"login":"LeMagnesium","id":6785985,"avatar_url":"https://avatars.githubusercontent.com/u/6785985?v=3","gravatar_id":"","url":"https://api.github.com/users/LeMagnesium","html_url":"https://github.com/LeMagnesium","followers_url":"https://api.github.com/users/LeMagnesium/followers","following_url":"https://api.github.com/users/LeMagnesium/following{/other_user}","gists_url":"https://api.github.com/users/LeMagnesium/gists{/gist_id}","starred_url":"https://api.github.com/users/LeMagnesium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeMagnesium/subscriptions","organizations_url":"https://api.github.com/users/LeMagnesium/orgs","repos_url":"https://api.github.com/users/LeMagnesium/repos","events_url":"https://api.github.com/users/LeMagnesium/events{/privacy}","received_events_url":"https://api.github.com/users/LeMagnesium/received_events","type":"User","site_admin":false},"repo":{"id":27499990,"name":"minetest","full_name":"LeMagnesium/minetest","owner":{"login":"LeMagnesium","id":6785985,"avatar_url":"https://avatars.githubusercontent.com/u/6785985?v=3","gravatar_id":"","url":"https://api.github.com/users/LeMagnesium","html_url":"https://github.com/LeMagnesium","followers_url":"https://api.github.com/users/LeMagnesium/followers","following_url":"https://api.github.com/users/LeMagnesium/following{/other_user}","gists_url":"https://api.github.com/users/LeMagnesium/gists{/gist_id}","starred_url":"https://api.github.com/users/LeMagnesium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeMagnesium/subscriptions","organizations_url":"https://api.github.com/users/LeMagnesium/orgs","repos_url":"https://api.github.com/users/LeMagnesium/repos","events_url":"https://api.github.com/users/LeMagnesium/events{/privacy}","received_events_url":"https://api.github.com/users/LeMagnesium/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LeMagnesium/minetest","description":"Minetest, an open source infinite-world block sandbox game with survival and crafting. [also https://github.com/minetest/minetest_game]","fork":true,"url":"https://api.github.com/repos/LeMagnesium/minetest","forks_url":"https://api.github.com/repos/LeMagnesium/minetest/forks","keys_url":"https://api.github.com/repos/LeMagnesium/minetest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LeMagnesium/minetest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LeMagnesium/minetest/teams","hooks_url":"https://api.github.com/repos/LeMagnesium/minetest/hooks","issue_events_url":"https://api.github.com/repos/LeMagnesium/minetest/issues/events{/number}","events_url":"https://api.github.com/repos/LeMagnesium/minetest/events","assignees_url":"https://api.github.com/repos/LeMagnesium/minetest/assignees{/user}","branches_url":"https://api.github.com/repos/LeMagnesium/minetest/branches{/branch}","tags_url":"https://api.github.com/repos/LeMagnesium/minetest/tags","blobs_url":"https://api.github.com/repos/LeMagnesium/minetest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LeMagnesium/minetest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LeMagnesium/minetest/git/refs{/sha}","trees_url":"https://api.github.com/repos/LeMagnesium/minetest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LeMagnesium/minetest/statuses/{sha}","languages_url":"https://api.github.com/repos/LeMagnesium/minetest/languages","stargazers_url":"https://api.github.com/repos/LeMagnesium/minetest/stargazers","contributors_url":"https://api.github.com/repos/LeMagnesium/minetest/contributors","subscribers_url":"https://api.github.com/repos/LeMagnesium/minetest/subscribers","subscription_url":"https://api.github.com/repos/LeMagnesium/minetest/subscription","commits_url":"https://api.github.com/repos/LeMagnesium/minetest/commits{/sha}","git_commits_url":"https://api.github.com/repos/LeMagnesium/minetest/git/commits{/sha}","comments_url":"https://api.github.com/repos/LeMagnesium/minetest/comments{/number}","issue_comment_url":"https://api.github.com/repos/LeMagnesium/minetest/issues/comments{/number}","contents_url":"https://api.github.com/repos/LeMagnesium/minetest/contents/{+path}","compare_url":"https://api.github.com/repos/LeMagnesium/minetest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LeMagnesium/minetest/merges","archive_url":"https://api.github.com/repos/LeMagnesium/minetest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LeMagnesium/minetest/downloads","issues_url":"https://api.github.com/repos/LeMagnesium/minetest/issues{/number}","pulls_url":"https://api.github.com/repos/LeMagnesium/minetest/pulls{/number}","milestones_url":"https://api.github.com/repos/LeMagnesium/minetest/milestones{/number}","notifications_url":"https://api.github.com/repos/LeMagnesium/minetest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LeMagnesium/minetest/labels{/name}","releases_url":"https://api.github.com/repos/LeMagnesium/minetest/releases{/id}","created_at":"2014-12-03T17:56:42Z","updated_at":"2015-03-15T11:32:28Z","pushed_at":"2015-05-16T13:57:42Z","git_url":"git://github.com/LeMagnesium/minetest.git","ssh_url":"git@github.com:LeMagnesium/minetest.git","clone_url":"https://github.com/LeMagnesium/minetest.git","svn_url":"https://github.com/LeMagnesium/minetest","homepage":"http://minetest.net/","size":33088,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"minetest:master","ref":"master","sha":"19cbb6b37b9a35df7892bde5aad138266496eb8f","user":{"login":"minetest","id":2624745,"avatar_url":"https://avatars.githubusercontent.com/u/2624745?v=3","gravatar_id":"","url":"https://api.github.com/users/minetest","html_url":"https://github.com/minetest","followers_url":"https://api.github.com/users/minetest/followers","following_url":"https://api.github.com/users/minetest/following{/other_user}","gists_url":"https://api.github.com/users/minetest/gists{/gist_id}","starred_url":"https://api.github.com/users/minetest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minetest/subscriptions","organizations_url":"https://api.github.com/users/minetest/orgs","repos_url":"https://api.github.com/users/minetest/repos","events_url":"https://api.github.com/users/minetest/events{/privacy}","received_events_url":"https://api.github.com/users/minetest/received_events","type":"Organization","site_admin":false},"repo":{"id":2168780,"name":"minetest","full_name":"minetest/minetest","owner":{"login":"minetest","id":2624745,"avatar_url":"https://avatars.githubusercontent.com/u/2624745?v=3","gravatar_id":"","url":"https://api.github.com/users/minetest","html_url":"https://github.com/minetest","followers_url":"https://api.github.com/users/minetest/followers","following_url":"https://api.github.com/users/minetest/following{/other_user}","gists_url":"https://api.github.com/users/minetest/gists{/gist_id}","starred_url":"https://api.github.com/users/minetest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minetest/subscriptions","organizations_url":"https://api.github.com/users/minetest/orgs","repos_url":"https://api.github.com/users/minetest/repos","events_url":"https://api.github.com/users/minetest/events{/privacy}","received_events_url":"https://api.github.com/users/minetest/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/minetest/minetest","description":"Minetest, an open source infinite-world block sandbox game with survival and crafting. [also https://github.com/minetest/minetest_game]","fork":false,"url":"https://api.github.com/repos/minetest/minetest","forks_url":"https://api.github.com/repos/minetest/minetest/forks","keys_url":"https://api.github.com/repos/minetest/minetest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minetest/minetest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minetest/minetest/teams","hooks_url":"https://api.github.com/repos/minetest/minetest/hooks","issue_events_url":"https://api.github.com/repos/minetest/minetest/issues/events{/number}","events_url":"https://api.github.com/repos/minetest/minetest/events","assignees_url":"https://api.github.com/repos/minetest/minetest/assignees{/user}","branches_url":"https://api.github.com/repos/minetest/minetest/branches{/branch}","tags_url":"https://api.github.com/repos/minetest/minetest/tags","blobs_url":"https://api.github.com/repos/minetest/minetest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minetest/minetest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minetest/minetest/git/refs{/sha}","trees_url":"https://api.github.com/repos/minetest/minetest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minetest/minetest/statuses/{sha}","languages_url":"https://api.github.com/repos/minetest/minetest/languages","stargazers_url":"https://api.github.com/repos/minetest/minetest/stargazers","contributors_url":"https://api.github.com/repos/minetest/minetest/contributors","subscribers_url":"https://api.github.com/repos/minetest/minetest/subscribers","subscription_url":"https://api.github.com/repos/minetest/minetest/subscription","commits_url":"https://api.github.com/repos/minetest/minetest/commits{/sha}","git_commits_url":"https://api.github.com/repos/minetest/minetest/git/commits{/sha}","comments_url":"https://api.github.com/repos/minetest/minetest/comments{/number}","issue_comment_url":"https://api.github.com/repos/minetest/minetest/issues/comments{/number}","contents_url":"https://api.github.com/repos/minetest/minetest/contents/{+path}","compare_url":"https://api.github.com/repos/minetest/minetest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minetest/minetest/merges","archive_url":"https://api.github.com/repos/minetest/minetest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minetest/minetest/downloads","issues_url":"https://api.github.com/repos/minetest/minetest/issues{/number}","pulls_url":"https://api.github.com/repos/minetest/minetest/pulls{/number}","milestones_url":"https://api.github.com/repos/minetest/minetest/milestones{/number}","notifications_url":"https://api.github.com/repos/minetest/minetest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minetest/minetest/labels{/name}","releases_url":"https://api.github.com/repos/minetest/minetest/releases{/id}","created_at":"2011-08-07T13:48:36Z","updated_at":"2015-05-16T07:39:26Z","pushed_at":"2015-05-16T13:57:43Z","git_url":"git://github.com/minetest/minetest.git","ssh_url":"git@github.com:minetest/minetest.git","clone_url":"https://github.com/minetest/minetest.git","svn_url":"https://github.com/minetest/minetest","homepage":"http://minetest.net/","size":88522,"stargazers_count":1477,"watchers_count":1477,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":486,"mirror_url":null,"open_issues_count":505,"forks":486,"open_issues":505,"watchers":1477,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/minetest/minetest/pulls/2707"},"html":{"href":"https://github.com/minetest/minetest/pull/2707"},"issue":{"href":"https://api.github.com/repos/minetest/minetest/issues/2707"},"comments":{"href":"https://api.github.com/repos/minetest/minetest/issues/2707/comments"},"review_comments":{"href":"https://api.github.com/repos/minetest/minetest/pulls/2707/comments"},"review_comment":{"href":"https://api.github.com/repos/minetest/minetest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/minetest/minetest/pulls/2707/commits"},"statuses":{"href":"https://api.github.com/repos/minetest/minetest/statuses/4cd8258b7547fe8a5a0c246ee7555537817c4f35"}}}}