Thank you for taking an interest in rrule! Please include the following in
your report:
[x] 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 firstlast like https://github.com/jakubroztocil/rrule/pull/422 so that rrule can be more convenient?
Reporting an issue
Thank you for taking an interest in
rrule
! Please include the following in your report:i found. rrule has
all()
to get all occurence.before()
andafter()
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 callall()
and filter it by myself? sincebetween()
requiresbefore & 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 getall after
but seems not so convenient. can we add something likebetween
with default start & end orfirst
last
like https://github.com/jakubroztocil/rrule/pull/422 so that rrule can be more convenient?