-
Notifications
You must be signed in to change notification settings - Fork 247
Recurrence evaluation: Implement support for negative BYWEEKNO values.
#654
New issue
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
Conversation
…IL=20170101T000000Z` and associated test failure.
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #654 +/- ##
===================================
Coverage 60% 60%
===================================
Files 100 100
Lines 4643 4657 +14
Branches 1103 1106 +3
===================================
+ Hits 2797 2811 +14
Misses 1379 1379
Partials 467 467
|
2bd69c4 to
f7697a3
Compare
|
| var testTime = new DateTime(year + 1, 1, 1, 0, 0, 0, DateTimeKind.Unspecified).AddDays(-4); | ||
| return calendar.GetIso8601WeekOfYear(testTime, firstDayOfWeek); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow!



This PR implements support for negative values in the
BYWEEKNOarray, like in the following example that is mentioned in #618.RRULE:FREQ=YEARLY;BYWEEKNO=1,2,-1,-2;BYDAY=TU;UNTIL=20170101T000000ZThis fixes the corresponding task in #618.