isFinite returns true if the rrule/rruleset has a determinable final occurrence
last returns the final occurrence if it exists and is determinable
first returns the first occurrence if it exists
This PR also implements the following revertible changes:
calling count on an infinite rrule/rruleset now returns Number.POSITIVE_INFINITY instead of returning all possible dates until the year 9999 - could be considered breaking.
calling all on an infinite rrule/rruleset now throws instead of returning all dates until the year 9999 (unless an iterator has been provided as the iterator can stop the loop) - could be considered breaking.
options.count throws if it received something other than a safe integer, null or Number.POSITIVE_INFINITY. Number.POSITIVE_INFINITY normalizes to null.
Thanks for contributing to rrule!
To submit a pull request, please verify that you have done the following:
[x] Merged in or rebased on the latest master commit
[x] Linked to an existing bug or issue describing the bug or feature you're
addressing
[x] Written one or more tests showing that your change works as advertised
This implements feature request https://github.com/jakubroztocil/rrule/issues/215
isFinite
returns true if the rrule/rruleset has a determinable final occurrencelast
returns the final occurrence if it exists and is determinablefirst
returns the first occurrence if it existsThis PR also implements the following revertible changes:
count
on an infinite rrule/rruleset now returnsNumber.POSITIVE_INFINITY
instead of returning all possible dates until the year 9999 - could be considered breaking.all
on an infinite rrule/rruleset now throws instead of returning all dates until the year 9999 (unless an iterator has been provided as the iterator can stop the loop) - could be considered breaking.options.count
throws if it received something other than a safe integer,null
orNumber.POSITIVE_INFINITY
.Number.POSITIVE_INFINITY
normalizes tonull
.Thanks for contributing to
rrule
!To submit a pull request, please verify that you have done the following:
master
commit