doc: Fix “Every second Sunday” example
* doc/mcron.texi (Every second Sunday): If the first day of the month is Sunday, then the second Sunday of the month is seven days later not eight.
This commit is contained in:
parent
d4b48ee300
commit
ba2975649a
1 changed files with 1 additions and 1 deletions
|
|
@ -434,7 +434,7 @@ the student to understand how this works!).
|
||||||
(let* ((next-month (next-month-from current-time))
|
(let* ((next-month (next-month-from current-time))
|
||||||
(first-day (tm:wday (localtime next-month)))
|
(first-day (tm:wday (localtime next-month)))
|
||||||
(second-sunday (if (eqv? first-day 0)
|
(second-sunday (if (eqv? first-day 0)
|
||||||
8
|
7
|
||||||
(- 14 first-day))))
|
(- 14 first-day))))
|
||||||
(+ next-month (* 24 60 60 second-sunday))))
|
(+ next-month (* 24 60 60 second-sunday))))
|
||||||
"my-program")
|
"my-program")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue