On Wed, 23 Jul 2025 11:35:50 -0700
JB via Remind-fans <[email protected]> wrote:

> This one's beyond my ken and I didn't find something similar in the
> man page. How would I set up a reminder for every 5 months on the
> third Saturday of the month?

Ooh, that's quite a tricky one.  This is what I came up with:

  # Return true if trigger date is a multiple of 5 months from
  # start date
  FSET is_fifth_month_from(start_yr, start_mon) (($Ty - start_yr) * 12 + ($Tm - 
start_mon)) % 5 == 0

  # Starting in July 2025, trigger on the third Saturday
  # every fifth month.
  REM Third Saturday SATISFY [is_fifth_month_from(2025, 07)] MSG Hello!

You define is_fifth_month_from and then you use it in a SATISFY
statement as shown above, supplying the starting year and month.

When I run "remind -p100 fifth_month.rem | grep Hello" I get this:

2025/07/19 * * * * Hello!
2025/12/20 * * * * Hello!
2026/05/16 * * * * Hello!
2026/10/17 * * * * Hello!
2027/03/20 * * * * Hello!
2027/08/21 * * * * Hello!
2028/01/15 * * * * Hello!
2028/06/17 * * * * Hello!
2028/11/18 * * * * Hello!
2029/04/21 * * * * Hello!
2029/09/15 * * * * Hello!
2030/02/16 * * * * Hello!
2030/07/20 * * * * Hello!
2030/12/21 * * * * Hello!
2031/05/17 * * * * Hello!
2031/10/18 * * * * Hello!
2032/03/20 * * * * Hello!
2032/08/21 * * * * Hello!
2033/01/15 * * * * Hello!
2033/06/18 * * * * Hello!

Looks about right?

Regards,

Dianne.
_______________________________________________
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