[Remind-Fans] Countdown message that only includes weekdays

Sector11 Sector11 at fibertel.com.ar
Wed Dec 28 11:07:21 EST 2016


OOPS!  I totally missed that "and holidays" in the OP's mail :(
Now I'm embarrassed!

Note to SELF: "SELF, Read The Full Message!"

I tried what you posted - it doesn't show on "Today" that a report is due in x
days.  The other two are my feeble attempt:  :(
--------------------
 28 Dec 16 @ 12:44:40 ~
  $ remind -q -r ~/.reminders | sed -e "/.*(today):/d" -e '/^$/d'
Due 33 day(s)
Report due 33
The €agle Flies
 
 28 Dec 16 @ 12:44:42 ~
  $ 
--------------------
All I changed was the MSG part:
------------
MSG Report %x Dianne
------------
to see the difference.

Bruce

On Wed, 28 Dec 2016 09:46:13 -0500
Dianne Skoll <dfs at roaringpenguin.com> wrote:

> On Tue, 27 Dec 2016 20:01:56 -0300
> Sector11 <Sector11 at fibertel.com.ar> wrote:
> 
> > REM 2017-01-30 +45 OMIT Sat Sun MSG Report due %x
> 
> That doesn't omit holidays and weekends in the 45-day count.  If I understand
> the Op correctly, he wants a message every 45 days, where you do NOT count
> holidays or weekends in the 45-day cycle.
> 
> That's quite hard.  It will most likely hit Remind's internal iteration
> limit and not work.  The closest I could come up with is this:
> 
> FSET goodcount(x, y) ((nonomitted(x, y, "Sat", "Sun") % 45) == 0)
> && !isomitted(y) && wkdaynum(y) != 0 && wkdaynum(y) != 6 REM 2017-01-30 *1
> SATISFY [goodcount('2017-01-30', trigdate())] MSG Report
> 
> Regards,
> 
> Dianne.
> _______________________________________________
> Remind-fans mailing list
> Remind-fans at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/cgi-bin/mailman/listinfo/remind-fans
> Remind is at http://www.roaringpenguin.com/products/remind


-----
Decide to make today a good day.


More information about the Remind-fans mailing list