<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 7/12/21 3:48 PM, Hymie! via
Remind-fans wrote:<br>
</div>
<blockquote type="cite" cite="mid:E1m31uq-00051V-U4@nasalinux.net">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On Mon, 12 Jul 2021 13:40:32 -0500
Tim Chase via Remind-fans <a class="moz-txt-link-rfc2396E" href="mailto:remind-fans@lists.skoll.ca"><remind-fans@lists.skoll.ca></a> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Over on Mastodon I was recently asked how to put an event on "every
other weekend". This is what I came up with:
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap=""> REM Sat Sun SATISFY ((abs($T - date(2021,7,10)) % 14) < 2)
IF trigvalid()
REM [$T] MSG Every other weekend
ENDIF
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
That works, but I'd write it more succinctly as:
REM Sat Sun FROM 2021-07-10 SATISFY [(($T - '2021-07-10') % 14) < 2] MSG Every
other weekend
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Is there a reason why we're avoiding
rem 21 jan 2020 *14 msg Every other Tuesday
(That's not a weekend, but the same construct should work on a Saturday
or a Sunday.)</pre>
</blockquote>
Presumably because that would require two reminders rather than one.
</body>
</html>