On 2025-07-30 11:55, Remind list wrote:
> On Wed, 30 Jul 2025 14:24:13 +0000
> Ricardo via Remind-fans <[email protected]> wrote:
> > - Every second Sunday after day 06 of January.
> 
> REM Sun 13 Jan MSG Lavagem bonfim
> REM Sun 14 Jan MSG Lavagem bonfim

Ricardo notes "every *second* Sunday" (I presume in January) which
seems to be a bit more complex.  Here's my stab at it:

  REM Jan Sun SATISFY [ \
    $Td > 7 && \
    ((($T - evaltrig(("Sun Jan 1 " + year($T)), date(year($T), 1, 1))) / 7) % 
2) == 1 \
    ] MSG Lavagem bonfim

It's ugly, but determines the first Sun of the month, subtracts
that from the date in question, divides by 7 to get a week-number,
and checks if it's odd/even (% 2).

But what's cool is that it can even be done in the first place.

I can't imagine trying to set something like this up in Google
Calendar X-D

-tim





_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/

Reply via email to