forked from ical-org/ical.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce
Duration
type to keep apart nominal vs exact durations. (i…
…cal-org#680) * Make Todo.Duration nullable * Remove Todo.ExtrapolateTimes() * Test: Minor fix related to CalendarEvent.Duration being nullable now * Introduce type `Duration` and replace `TimeSpanSerializer` by `DurationSerializer` in preparation of using the type throughout the lib. * Remove redundant `CalDateTime.Subtract(TimeSpan)`, which can also be written as `CalDateTime.Add(-d)`. * Remove obsolete `DaetUtil.Start/EndOfDay` * Change `CalendarEvent.Duration`, `Todo.Duration`, `Trigger.Duration` from `TimeSpan` to `Duration`. * Rename `CalDateTime.Subtract()` -> `CalDateTime.SubtractExact()` * Change `TimeSpan CalendarEvent.GetTimeSpanToAddToPeriodStartTime()` -> `Duration CalendarEvent.GetEffectiveDuration()`. * Fix date/time arithmetics: Keep apart nominal and exact durations. * CalDateTime doc comments * Change `Period.Duration` from `TimeSpan` to `Duration`. Remove extrapolation and introduce `GetEffectiveDuration()`, `GetEffectiveEndTime()`. * CalDateTimeTests: Indentation and whitespace * Test: Extend RecurrenceTest test cases to test for occurrences durations. * Improve `CalDateTime.ToTimeZone()` conversion of floating time that doesn't exist in the target tz. * RecurrencePatternEvaluator: Adjust nonexistent recurrence instances according to RFC 5545 3.3.5 * Test: DurationOfRecurrencesOverDst * Allow `IDateTime.ToTimeZone` to convert to floating time. * CalendarEvent: Avoid null-reference warnings.
- Loading branch information
Showing
29 changed files
with
1,392 additions
and
1,077 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.