[Remind-Fans] Better way to do "every other weekend"?

hymie at nasalinux.net hymie at nasalinux.net
Mon Jul 12 15:48:32 EDT 2021


>On Mon, 12 Jul 2021 13:40:32 -0500
>Tim Chase via Remind-fans <remind-fans at lists.skoll.ca> wrote:
>
>> Over on Mastodon I was recently asked how to put an event on "every
>> other weekend".  This is what I came up with:
>
>>   REM Sat Sun SATISFY ((abs($T - date(2021,7,10)) % 14) < 2)
>>   IF trigvalid()
>>     REM [$T] MSG Every other weekend
>>   ENDIF
>
>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

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.)

--hymie!


More information about the Remind-fans mailing list