Skip to content

Commit

Permalink
Add :on_ambiguity attribute documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shaolang committed Nov 24, 2024
1 parent bd75787 commit 833d72a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/crontab/cron_expression.ex
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ defmodule Crontab.CronExpression do
+-------------- :second Second (range: 0-59)
The `:extended` attribute defines if the second is taken into account.
When using localized DateTime, the `:on_ambiguity` attribute defines
whether the scheduler should return the earlier or later time when
the next run DateTime is ambiguous. `:on_ambiguity` defaults to `[:later]`.
To run on both, set it as `[:earlier, :later]`.
"""
defstruct extended: false,
reboot: false,
Expand Down

0 comments on commit 833d72a

Please sign in to comment.