Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convenience methods for date comparisons #2709

Closed
wants to merge 1 commit into from
Closed

Add convenience methods for date comparisons #2709

wants to merge 1 commit into from

Conversation

nscornia
Copy link
Contributor

  • isSameOrAfter
  • isSameOrBefore

@matpag
Copy link

matpag commented Oct 29, 2015

+1

@ichernev
Copy link
Contributor

@nscornia you need to add tests.

@nscornia
Copy link
Contributor Author

Sure I can write some up. I just wasn't sure since there wasn't any new logic added.

@ichernev
Copy link
Contributor

There is new API added... logic an implementation detail.

@nscornia
Copy link
Contributor Author

Ok, I've added the tests, but it looks like the Travis build is failing on a completely unrelated test. Any advice?

Added `isSameOrAfter` and `isSameOrBefore` convenience methods to Moment
prototype and added test for new API
@nscornia
Copy link
Contributor Author

Nevermind, I got it fixed.

@ichernev ichernev added this to the 2.10.7 milestone Dec 1, 2015
@ichernev
Copy link
Contributor

ichernev commented Dec 1, 2015

Merged in 3ab9469

@ichernev ichernev closed this Dec 1, 2015
ichernev added a commit that referenced this pull request Dec 1, 2015
Add convenience methods for date comparisons
@nscornia nscornia deleted the add_date_comparison_methods branch December 1, 2015 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants