Document "trigbase" entry in JSON output.

This commit is contained in:
Dianne Skoll
2025-05-22 18:05:31 -04:00
parent f0f0cec2d3
commit 99e5b3f43d
2 changed files with 6 additions and 1 deletions

View File

@@ -581,6 +581,11 @@ If the reminder contained a "delta" clause (+n or ++n), this key
contains the delta value. If the "delta" value was +n, the value will
be positive; if it was ++n, the value will be negative.
.TP
.B trigbase "\fIdate\fR"
If the reminder included all of the day, month and year components, then
\fBtrigbase\fR is the date made from those components, expressed in
the format \fIYYYY-MM-DD\fR.
.TP
.B rep \fIn\fR
If the reminder contained a "repeat" clause (*n), this key contains
the repeat value.

View File

@@ -4406,7 +4406,7 @@ Here is an example of how \fBtrigbase()\fR might be used:
.PP
.nf
REM 2025-05-05 *7 UNTIL 2025-05-26 \\
MSG Meeting: week #[(trigdate() - trigbase())/7+1]
MSG Meeting: week #[(trigdate() - trigbase())/trigrep()+1]
.fi
.PP
On 2025-05-05, it would print: "Meeting: week #1". On 2025-05-12,