Dates.Recurring
Dates.Recurring copied to clipboard
Added Ending After Method to Builders
Hey @gavynriebau, I needed a way to specify after a certain number of iterations in a recurrence to return a null date, showing that the recurrence is over. I added EndingAfter method to the builders that take in an int which specifies the number of times the user intends for the recurrence to happen.
I'm using your library to create schedules with parameters similar to Outlook or Google Calendar, where one of the options is to select is a "ends after" so many occurrences of the event. This seemed like something that might be useful to others, which is why I'm submitting this pull request. Let me know what you think.
Thanks.
It's not my library.
On Thu, 14 Jan 2021, 13:23 Brandon Buchanan, [email protected] wrote:
Hey @nikkilocke https://github.com/nikkilocke, I needed a way to specify after a certain number of iterations in a recurrence to return a null date, showing that the recurrence is over. I added EndingAfter method to the builders that take in an int which specifies the number of times the user intends for the recurrence to happen.
I'm using your library to create schedules with parameters similar to Outlook or Google Calendar, where one of the options is to select is a "ends after" so many occurrences of the event. This seemed like something that might be useful to others, which is why I'm submitting this pull request. Let me know what you think.
Thanks.
You can view, comment on, or merge this pull request online at:
https://github.com/gavynriebau/Dates.Recurring/pull/20 Commit Summary
- added ending after method to builders
File Changes
- M Dates.Recurring.Tests/DailyRecurrenceTests.cs https://github.com/gavynriebau/Dates.Recurring/pull/20/files#diff-9533f20a6e9662a933ae303d802d29dc395aa1b5fca08ec945655082126dfb0a (32)
- M Dates.Recurring.Tests/MonthlyRecurrenceTests.cs https://github.com/gavynriebau/Dates.Recurring/pull/20/files#diff-c83557cb94819e99e415a3887dfd1e3c2322643874dc903b3a24e65e50fc2716 (77)
- M Dates.Recurring.Tests/WeeklyRecurrenceTests.cs https://github.com/gavynriebau/Dates.Recurring/pull/20/files#diff-8d72bb4f0f09dc2c6c1ca293e02a4607e6eb87ccb42c4a4fe42001394446ea96 (35)
- M Dates.Recurring.Tests/YearlyRecurrenceTests.cs https://github.com/gavynriebau/Dates.Recurring/pull/20/files#diff-c730c59f2abb54d93f1817392609fe06a666c3736eb6b160414ca8071e6422d9 (75)
- M Dates.Recurring/Builders/DaysBuilder.cs https://github.com/gavynriebau/Dates.Recurring/pull/20/files#diff-7b4afd677b10e4e558ab6d1457e948bb44cbc0e33be46728e19e317d864cff7b (9)
- M Dates.Recurring/Builders/MonthsBuilder.cs https://github.com/gavynriebau/Dates.Recurring/pull/20/files#diff-882fb1c44ab3da610f36ec4c2efd00776ea0bafccf9ce47edff1a37462f82ad7 (11)
- M Dates.Recurring/Builders/WeeksBuilder.cs https://github.com/gavynriebau/Dates.Recurring/pull/20/files#diff-877d212d23318fec81c851ffe363b3876f65c547a6fdb45d8ebf724b2af79071 (9)
- M Dates.Recurring/Builders/YearsBuilder.cs https://github.com/gavynriebau/Dates.Recurring/pull/20/files#diff-6a8ebcaa93461bde27982db7ed73c73f4a2564c1356212f3e840ccb8ff7c1fc7 (11)
- M Dates.Recurring/Type/Daily.cs https://github.com/gavynriebau/Dates.Recurring/pull/20/files#diff-2042dd9cab06193d0f9eaf4b50992eb3964cee4898092f4495e7c7d7678d9ba6 (16)
- M Dates.Recurring/Type/Monthly.cs https://github.com/gavynriebau/Dates.Recurring/pull/20/files#diff-6d408bd57e0b21c5ab5353f4d313851bb09651249200e016995a9c39e5bcd921 (41)
- M Dates.Recurring/Type/RecurrenceType.cs https://github.com/gavynriebau/Dates.Recurring/pull/20/files#diff-1902f210521b5788d70987f1de8c6959030353d30087e4adda60cb3e2243c4eb (4)
- M Dates.Recurring/Type/Weekly.cs https://github.com/gavynriebau/Dates.Recurring/pull/20/files#diff-8b99d7b89c4a6cbc3264a60cdf37e7a46191fd7cac9f8a09c65eb7a2c59e420c (21)
- M Dates.Recurring/Type/Yearly.cs https://github.com/gavynriebau/Dates.Recurring/pull/20/files#diff-717fefc9acfce0e6f10254830dff67398ce435db56cde0bd98b4da73b5757596 (43)
Patch Links:
- https://github.com/gavynriebau/Dates.Recurring/pull/20.patch
- https://github.com/gavynriebau/Dates.Recurring/pull/20.diff
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gavynriebau/Dates.Recurring/pull/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFG76KFEPYXG223QG2XOLLSZ3V65ANCNFSM4WCNRGWQ .