Skip to content

Conversation

@anthonywoodard
Copy link

As an addition to the closed issue #10, the wholeMonths interval adds
the ability to choose every nth months to the weeksOfMonthByDay
interval.

As an addition to the closed issue c-trimm#10, the wholeMonths interval adds
the ability to choose every nth months to the weeksOfMonthByDay
interval.
moment-recur.js Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This indentation seems wrong.

@bramski
Copy link
Collaborator

bramski commented Jan 8, 2016

Looks great. Please do a bit of reorganization.

Created a function to calculate the diff for intervals.
Created a validateRule method that is used when trying to set a rule.
Removed .toLowerCase() method when creating an interval.
Fixed indentation issue.
Changed wholeMonth to wholeMonths.
Use subtraction instead of difference to calculate wholeMonths.  For
this purpose difference sometimes returns inaccurate values since it
rounds the number down.
@anthonywoodard
Copy link
Author

anthonywoodard commented Jun 19, 2018 via email

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.

2 participants