Skip to content

Remove Timex from ICal.Recurrence module#36

Merged
aseigo merged 3 commits into
expothecary:masterfrom
matthewlehner:remove-timex-recurrence
Apr 11, 2026
Merged

Remove Timex from ICal.Recurrence module#36
aseigo merged 3 commits into
expothecary:masterfrom
matthewlehner:remove-timex-recurrence

Conversation

@matthewlehner

Copy link
Copy Markdown
Collaborator

This checks off a bunch of stuff in #32

Both functions return 1 (Monday) through 7 (Sunday) by default,
making this a direct 1:1 replacement with no behavior change.
Remove Timex.AmbiguousDateTime handling since stdlib shift
functions do not return ambiguous datetime structs. Pattern
match on Date/DateTime to dispatch to the correct module.

Update shift_opts to use singular unit names (day, month,
year) as required by stdlib Duration, replacing Timex's
plural convention (days, months, years).
Comment thread lib/ical/recurrence.ex

@aseigo aseigo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Tests pass, compiles clean, credo is happy ... 🚀

@aseigo aseigo merged commit 19ab55b into expothecary:master Apr 11, 2026
5 checks passed
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.

2 participants