maennchen / crontab

:alarm_clock: Parse Cron Expressions, Compose Cron Expression Strings and Caluclate Execution Dates.
https://hex.pm/packages/crontab
MIT License
93 stars 33 forks source link

Localized DateTime ambiguous handling #131

Open maennchen opened 9 months ago

maennchen commented 9 months ago
          > does that mean most functions in DateHelper need to return either one or two dates?

Probably not:

If you have the setting on both, we can just return the first occurrence. When we look for the next candidate date, we should automatically reach the later occurrence.

So the logic could be something like this:

Originally posted by @maennchen in https://github.com/maennchen/crontab/issues/129#issuecomment-1940457081

Needed for https://github.com/quantum-elixir/quantum-core/issues/407