how can i get the `all after` occurence?
smallst opened this issue · comments
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?
seems no response. i use the all().filter()
by myself finally.