[Remind-Fans] Struggle with some specific reminders

l0f4r0 at tuta.io l0f4r0 at tuta.io
Mon Jul 4 18:09:26 EDT 2022


Hi Dianne,

Thanks for replying so fast :)

4 juil. 2022, 01:30 de remind-fans at lists.skoll.ca:

> 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)
>
Great, I didn't think about shifting days with different values than 1, 8, 15 and 22!

>> 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
>
OK, indeed, simple.

By the way, why a simple instruction like the following is not allowed (only wekdays)?
OMIT Saturday Sunday

> 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.
>
OK, I need to have a check :)

>> * Epiphany: 1st sunday after New Year (or 2nd sunday after Christmas)
>>
> That's easy: REM Sun 1 January MSG Epiphany
>
I think you mean:
REM Sun 2 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
>
Not exactly, see your link: "Advent Sunday is the fourth Sunday before Christmas Day. This is equivalent to the Sunday nearest to St. Andrew's Day, 30 November. It can fall on any date between 27 November and 3 December. When Christmas Day is a Monday, Advent Sunday will fall on its latest possible date. It is possible to compute the date of Advent Sunday by adding three days to the date of the last Thursday of November; it can also be computed as the Sunday before the first Thursday of December."

Considering this new information, here is my reminder:
REM 1 Thursday December -4 MSG Start of Advent

However, now I'm struggling with the 2nd Sunday of Advent, 3rd and 4th...

I tried the following but it doesn't work and I don't know why (issue with the 4th Sunday of Advent in 2023 for example):
REM 8 Thursday December -4 MSG 2nd Suday of Advent
REM 15 Thursday December -4 MSG 3rd Suday of Advent
REM 22 Thursday December -4 MSG 4th Suday of Advent

By the way, do you confirm there is no way to add days to a date not written in the 'YYYY-MM-DD' form?
Otherwise, I could save Start of Advent inside a variable and then add 7, 14 and 21 days for all the other Sundays...

>> * 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! :)
>
I need to read some more material beforehand ;)
Thanks & Best regards,
l0f4r0



More information about the Remind-fans mailing list