We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would it be possible to implement a method which computes all recurrences within two dates?
The text was updated successfully, but these errors were encountered:
fun Recurrence.findRecurrencesBetween(startDate: Long, endDate: Long): List<Long> { val recurrences = mutableListOf<Long>() var lastDate = this.findRecurrences(startDate, 1).first() var repeats = 1 while (lastDate < endDate) { recurrences += lastDate lastDate = this.findRecurrencesBasedOn(lastDate, repeats, startDate, 1).first() repeats++ } return recurrences }
I'll add it in next version.
Sorry, something went wrong.
No branches or pull requests
Would it be possible to implement a method which computes all recurrences within two dates?
The text was updated successfully, but these errors were encountered: