[Remind-Fans] A-Day / B-Day
hymie at nasalinux.net
hymie at nasalinux.net
Tue Aug 27 09:02:41 EDT 2024
So I'm trying something complex. I'm sure Remind can do it, but I'm not
sure if **I** can do it.
Anyway, my first roadblock seems to be an A-Day B-Day schedule.
Problem 1:
I have this construct
OMIT SAT
OMIT SUN
OMIT 2024-09-02
set a_day 0
rem 2024-08-27 SKIP *2 SATISFY 1
if (trigvalid())
set a_day 1
endif
msg [a_day]
Sadly, this is triggering every day -- even before 2024-08-27
2024/08/24 * * * * 1 <== before 2024-08-27
2024/08/25 * * * * 1 <== before 2024-08-27
2024/08/26 * * * * 1 <== before 2024-08-27
2024/08/27 * * * * 1
2024/08/28 * * * * 1
2024/08/29 * * * * 1
2024/08/30 * * * * 1
2024/08/31 * * * * 1 <== SAT not omitted
2024/09/01 * * * * 1 <== SUN not omitted
2024/09/02 * * * * 1 <== OMIT not omitted
2024/09/03 * * * * 1
2024/09/04 * * * * 1
2024/09/05 * * * * 1
2024/09/06 * * * * 1
2024/09/07 * * * * 1 <== SAT not omitted
2024/09/08 * * * * 1 <== SUN not omitted
2024/09/09 * * * * 1
2024/09/10 * * * * 1
So I don't know what I'm doing wrong.
Problem 2:
OMIT SAT
OMIT SUN
OMIT 2024-09-02
rem 2024-08-27 SKIP *2 MSG "A Day"
yields this result:
2024/08/27 * * * * "A Day"
2024/08/29 * * * * "A Day"
2024/09/04 * * * * "A Day"
2024/09/06 * * * * "A Day"
(2024/09/02 should have been an A Day but it was omitted)
The problem is, the A/B schedule doesn't just skip holidays, it **shifts**
So when it skips 2024/09/02, that makes 2024/09/03 the next A day, followed
by 2024/09/05 .
I fear that I will have to set this up in groups, such as
rem 2024-08-27 until 2024-09-01 *2 MSG "A Day"
rem 2024-09-03 until 2024-10-02 *2 MSG "A Day"
rem 2024-10-04 until 2024-11-04 *2 MSG "A Day"
and so on. But I'd rather not, if there's something more Remindish I can
do.
Thanks.
--hymie! http://nasalinux.net/~hymie hymie at nasalinux.net
More information about the Remind-fans
mailing list