[Remind-Fans] Better way to do "every other weekend"?
Jonathan Kamens
jik at kamens.us
Mon Jul 12 15:51:33 EDT 2021
On 7/12/21 3:48 PM, Hymie! via Remind-fans wrote:
>> 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.)
Presumably because that would require two reminders rather than one.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dianne.skoll.ca/pipermail/remind-fans/attachments/20210712/137c4de4/attachment.htm>
More information about the Remind-fans
mailing list