[Remind-Fans] Struggle with some specific reminders

Dianne Skoll dianne at skoll.ca
Sun Jul 3 19:30:01 EDT 2022


On Mon, 4 Jul 2022 01:02:23 +0200 (CEST)
l0f4r0--- via Remind-fans <remind-fans at lists.skoll.ca> wrote:

> 1) How to repeat only 1 day a REM command?
> For example: in France there are the "Journées du Patrimoine"
> (Heritage Days). They take place during the third complete weekend in
> September so my reminder is: REM 15 Saturday September MSG Journées
> du Patrimoine However, as the event lasts during a whole weekend (and
> not just the saturday), I need to repeat the reminder on the
> following sunday as well but I don't know how to put a formula for
> the UNTIL clause (because it's not a fixed end date) if I use "*1"...

This is a little tricky because *1 only works for fully-specified
fixed starting dates.  The simplest option is to use two separate REM
statements:

  REM 15 Saturday September MSG Journées du Patrimoine (1)
  REM 16 Sunday September MSG Journées du Patrimoine (2)

> 2) How to setup advanced warning for OMIT statements while not taking
> into account weekends?

> the following : OMIT 1 January OMIT Saturday Sunday +1 MSG New Year

Again, this should be split in two:

  OMIT 1 January
  REM 1 January OMIT SAT SUN +1 MSG New Year

or you could use:

  REM 1 January SCANFROM -7 OMIT SAT SUN +1 ADDOMIT MSG New Year

which is much more complicated!  Check the man page for the SCANFROM
and ADDOMIT keywords (which are relatively new; ADDOMIT only appeared in
3.4.0.  Also, this isn't quite equivalent because it only omits one
specific January 1st and not every January 1st.

> * Epiphany: 1st sunday after New Year (or 2nd sunday after Christmas)

That's easy: REM Sun 1 January MSG Epiphany

> * Advent beginning: 4th sunday before Christmas

This happens to be: REM Sun 27 November MSG Start of Advent.
https://en.wikipedia.org/wiki/Advent_Sunday

> * Mothers' day: last sunday in May but if it's already Pentecost time
> then it's delayed to 1st sunday in June

OK, that's a lot trickier.  I believe Pentecost is Easter Sunday plus
7 weeks.  So something like this should work:

  REM [easterdate($Uy) + 49] MSG Pentecost
  REM MAYBE-UNCOMPUTABLE Sun June 1 --7 SATISFY [$T != easterdate($Uy)+49] MSG Mother's Day
  REM MAYBE-UNCOMPUTABLE Sun June 1 SATISFY [$T == easterdate($Uy)+56] MSG Mother's Day (delayed)

You will *really* need to read the man page to understand the above! :)

Regards,

Dianne.



More information about the Remind-fans mailing list