[Remind-Fans] SKIP'ing weekends and holidays

David F. Skoll dfs at roaringpenguin.com
Tue Aug 7 11:56:46 EDT 2012


Sorry for following up 3 times...

> REM 8 August 2012 *1 AT 9:30 DURATION 1:00 \
>     SATISFY [(nonomitted('2012-08-08', $T, "Sat", "Sun") % 3) == 0
> && !isomitted($T) && $Tw != 0 && $Tw != 6] \ MSG Meeting %b

Be aware that as time goes on, this reminder will exhibit O(N^2) time
complexity.  You should periodically "resynchronize" the starting date to
a more recent date than 8 August 2012 to improve performance.

That being said:

$ time remind -p12 skip.rem 1 aug 2030 > /dev/null

real    0m0.157s
user    0m0.156s
sys     0m0.000s

(That's 365 evaluations of the reminder.)

Regards,

David.


More information about the Remind-fans mailing list