SummaryRefsLogTreeCommitDiffStats
path: root/doc/mcron.texi
diff options
context:
space:
mode:
authorAdam Tack <adam.tack.513@gmail.com>2019-02-11 09:31:56 +0100
committerMathieu Lirzin <mthl@gnu.org>2019-02-11 09:38:11 +0100
commitba2975649aad5de50d1322c135550d8532d8358d (patch)
treeeafc1934edc9352f8b4cf8420e2c357a0d2d25b3 /doc/mcron.texi
parentd4b48ee300dd1ea7c63666d8551c83a80b94b507 (diff)
downloadmcron-ba2975649aad5de50d1322c135550d8532d8358d.tar.gz
mcron-ba2975649aad5de50d1322c135550d8532d8358d.tar.bz2
mcron-ba2975649aad5de50d1322c135550d8532d8358d.zip
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.
Diffstat (limited to 'doc/mcron.texi')
-rw-r--r--doc/mcron.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/mcron.texi b/doc/mcron.texi
index f408e11..c124bc8 100644
--- a/doc/mcron.texi
+++ b/doc/mcron.texi
@@ -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")