comparison man/calendar.texi @ 79374:db003ccf1bc0

(Special Diary Entries): Fix Thanksgiving example.
author Glenn Morris <rgm@gnu.org>
date Sun, 11 Nov 2007 03:17:40 +0000
parents 70b8ad88064e
children 02b9a9aa5b0c
comparison
equal deleted inserted replaced
79373:69d4273c349e 79374:db003ccf1bc0
1395 1395
1396 Another sophisticated kind of sexp entry, a @dfn{floating} diary entry, 1396 Another sophisticated kind of sexp entry, a @dfn{floating} diary entry,
1397 specifies a regularly occurring event by offsets specified in days, 1397 specifies a regularly occurring event by offsets specified in days,
1398 weeks, and months. It is comparable to a crontab entry interpreted by 1398 weeks, and months. It is comparable to a crontab entry interpreted by
1399 the @code{cron} utility. Here is a nonmarking, floating diary entry 1399 the @code{cron} utility. Here is a nonmarking, floating diary entry
1400 that applies to the last Thursday in November: 1400 that applies to the fourth Thursday in November:
1401 1401
1402 @findex diary-float 1402 @findex diary-float
1403 @example 1403 @example
1404 &%%(diary-float 11 4 -1) American Thanksgiving 1404 &%%(diary-float 11 4 4) American Thanksgiving
1405 @end example 1405 @end example
1406 1406
1407 @noindent 1407 @noindent
1408 The 11 specifies November (the eleventh month), the 4 specifies Thursday 1408 The 11 specifies November (the eleventh month), the 4 specifies Thursday
1409 (the fourth day of the week, where Sunday is numbered zero), and the 1409 (the fourth day of the week, where Sunday is numbered zero), and the
1410 @minus{}1 specifies ``last'' (1 would mean ``first,'' 2 would mean 1410 second 4 specifies the fourth Thursday (1 would mean ``first,'' 2 would
1411 ``second,'' @minus{}2 would mean ``second-to-last,'' and so on). The 1411 mean ``second,'' @minus{}2 would mean ``second-to-last,'' and so on).
1412 month can be a single month or a list of months. Thus you could change 1412 The month can be a single month or a list of months. Thus you could change
1413 the 11 above to @samp{'(1 2 3)} and have the entry apply to the last 1413 the 11 above to @samp{'(1 2 3)} and have the entry apply to the last
1414 Thursday of January, February, and March. If the month is @code{t}, the 1414 Thursday of January, February, and March. If the month is @code{t}, the
1415 entry applies to all months of the year.@refill 1415 entry applies to all months of the year.@refill
1416 1416
1417 Each of the standard sexp diary entries takes an optional parameter 1417 Each of the standard sexp diary entries takes an optional parameter