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

how can i get the all after occurence? #559

Closed
1 task done
smallst opened this issue Nov 9, 2022 · 1 comment
Closed
1 task done

how can i get the all after occurence? #559

smallst opened this issue Nov 9, 2022 · 1 comment

Comments

@smallst
Copy link

smallst commented Nov 9, 2022

Reporting an issue

Thank you for taking an interest in rrule! Please include the following in
your report:

  • Verify that you've looked through existing issues for duplicates before
    creating a new one

i found. rrule has all() to get all occurence. before() and after() to get only 1 occurence. then if i had a rrule like {dtstart: new Date('2022-01-01'), freq: WEEKLY, count: 50} and i want to know how many occurence is there after new Date('2022-03-01'), i can only call all() and filter it by myself? since between() requires before & after at the same time, while i don't know the endDate of the rrule. maybe i need to use all() and get last item?
anyway i could get all after but seems not so convenient. can we add something like between with default start & end or first last like #422 so that rrule can be more convenient?

@smallst
Copy link
Author

smallst commented Nov 23, 2022

seems no response. i use the all().filter() by myself finally.

@smallst smallst closed this as completed Nov 23, 2022
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

No branches or pull requests

1 participant