[Remind-Fans] How to get reminders every 2 years?

Claudio Pighin cpighin at gmail.com
Sat Sep 22 13:04:27 EDT 2018


Thanks Tim for your valuable contribution!

Consider that I am not an expert and that I have difficulty on
understanding the computer language.

However, starting from your example
REM Jan 1 SATISFY [$ Ty% 2 == 0] MSG% "Happens on even years%"%
I tried the Reminder
REM Sep 22 SATISFY [$ Ty% 2 == 0] MSG% "Happens on even years%"%
and verified that it works fine today 22 September 2018 and should also be
valid in 2020, 2022, etc.

>From that I can start to write few Reminiders that have bi-annual cadence.

Thank you also for the link
https://www.roaringpenguin.com/wiki/index.php/Defs.rem where I can learn
other things, asking for more help , if necessary.

Claudio :)


Il giorno sab 22 set 2018 alle ore 15:24 Tim Chase <remind at tim.thechases.com>
ha scritto:

> On 2018-09-22 15:00, Claudio Pighin wrote:
> > I've been using Remind for a few days and I could not find an easy
> > way to get a reminder every 2 years, for example on the 1st of
> > January of just the even years (2018, 2020, etc., skipping the odd
> > years). Which specific instruction should I use?
>
> You want the SATISFY clause:
>
> REM Jan 1 SATISFY [$Ty % 2 == 0] MSG %"Happens on even years%"%
> REM Jan 1 SATISFY [$Ty % 2 == 1] MSG %"Happens on odd years%"%
>
> That latter one can be simplified to
>
> REM Jan 1 SATISFY [$Ty % 2] MSG %"Happens on odd years%"%
>
> You can adjust the 2 for however many years you want to skip, so
>
> REM Nov 1 SATISFY [$Ty % 4 == 0] MSG %"Every 4 years%"%
>
> You can see this in one of the demo files
>
> https://www.roaringpenguin.com/wiki/index.php/Defs.rem
>
> where they do this for election day:
>
>    REM Tue Nov 2 SCANFROM [_back(7)] \
>       SATISFY [(YEAR(TRIGDATE()) % 4) == 0] \
>       MSG %"Election%" Day
>
> ("$Ty" is the same as "YEAR(TRIGDATE())")
>
> Hope this helps!
>
> -tim
>
>
>
>

-- 
Claudio Pighin
cpighin at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.roaringpenguin.com/pipermail/remind-fans/attachments/20180922/1d48ceb5/attachment.html>


More information about the Remind-fans mailing list