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:
Adam Tack 2019-02-11 09:31:56 +01:00 committed by Mathieu Lirzin
commit ba2975649a

View file

@ -434,7 +434,7 @@ the student to understand how this works!).
(let* ((next-month (next-month-from current-time))
(first-day (tm:wday (localtime next-month)))
(second-sunday (if (eqv? first-day 0)
8
7
(- 14 first-day))))
(+ next-month (* 24 60 60 second-sunday))))
"my-program")