{"action":"created","issue":{"url":"https://api.github.com/repos/moment/moment/issues/2164","labels_url":"https://api.github.com/repos/moment/moment/issues/2164/labels{/name}","comments_url":"https://api.github.com/repos/moment/moment/issues/2164/comments","events_url":"https://api.github.com/repos/moment/moment/issues/2164/events","html_url":"https://github.com/moment/moment/issues/2164","id":54538667,"number":2164,"title":"[Proposal] Inclusive isBetween","user":{"login":"BlueHayes","id":591318,"avatar_url":"https://avatars.githubusercontent.com/u/591318?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueHayes","html_url":"https://github.com/BlueHayes","followers_url":"https://api.github.com/users/BlueHayes/followers","following_url":"https://api.github.com/users/BlueHayes/following{/other_user}","gists_url":"https://api.github.com/users/BlueHayes/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueHayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueHayes/subscriptions","organizations_url":"https://api.github.com/users/BlueHayes/orgs","repos_url":"https://api.github.com/users/BlueHayes/repos","events_url":"https://api.github.com/users/BlueHayes/events{/privacy}","received_events_url":"https://api.github.com/users/BlueHayes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-16T04:26:07Z","updated_at":"2015-07-21T08:40:26Z","closed_at":null,"body":"The isBetween method checks if a moment is between two others, but not if it's equal to either of the comparison times. I think we need an inclusive argument, although with the third argument currently being the units, it may be best to create a separate isBetweenInclusive method.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/moment/moment/issues/comments/123215065","html_url":"https://github.com/moment/moment/issues/2164#issuecomment-123215065","issue_url":"https://api.github.com/repos/moment/moment/issues/2164","id":123215065,"user":{"login":"Aukhan","id":1792261,"avatar_url":"https://avatars.githubusercontent.com/u/1792261?v=3","gravatar_id":"","url":"https://api.github.com/users/Aukhan","html_url":"https://github.com/Aukhan","followers_url":"https://api.github.com/users/Aukhan/followers","following_url":"https://api.github.com/users/Aukhan/following{/other_user}","gists_url":"https://api.github.com/users/Aukhan/gists{/gist_id}","starred_url":"https://api.github.com/users/Aukhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aukhan/subscriptions","organizations_url":"https://api.github.com/users/Aukhan/orgs","repos_url":"https://api.github.com/users/Aukhan/repos","events_url":"https://api.github.com/users/Aukhan/events{/privacy}","received_events_url":"https://api.github.com/users/Aukhan/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T08:40:26Z","updated_at":"2015-07-21T08:40:26Z","body":"+1 for proposal 1, makes things flexible.\r\nMy first expectation was the same that the upper and lower limits would be included, just like I would do in SQL, X Between A AND B,\r\nCurrently working it around by this `x.isBetween(a, b) || x.isSame(a) || x.isSame(b)`"}}