Skip to content

Introduce CalendarDuration#120

Merged
sectore merged 8 commits intomainfrom
calendar-duration
Oct 9, 2025
Merged

Introduce CalendarDuration#120
sectore merged 8 commits intomainfrom
calendar-duration

Conversation

@sectore
Copy link
Copy Markdown
Owner

@sectore sectore commented Oct 8, 2025

Recently we used DurationEx all over the place to get values for time based durations. This works fine as long as we don't have any dates to compare. It changed after introducing EventWidget to display a duration from date A to date B. That's why we need a calendar-aware duration, especially for accounting leap years. To work with both "durations" CalenderDuration trait is used where it's needed.

Part of #93

@sectore sectore merged commit e2cd536 into main Oct 9, 2025
3 checks passed
@sectore sectore deleted the calendar-duration branch October 9, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant