[Remind-Fans] Moving trash day around when holidays occur on weekdays before

Sector11 Sector11 at fibertel.com.ar
Sun Apr 8 11:31:41 EDT 2018


Awesome!  The power of Remind never ceases to amaze me.

KUDOS! Dianne

> I had to solve this *exact* problem.  Here's my solution:
> 
> #=======================================================================
> # Garbage
> 
> # Set garbday to the usual weekday of garbage collection where
> # Monday == 1 and Friday == 5.  Set garbdayname to the matching
> # day name.
> 
> # Example below: Friday
> set garbday 5
> set garbdayname "Friday"
> 
> fset _garbhol(x) wkdaynum(x) == garbday && slide(x-garbday, garbday) != x
> fset _garbdel() iif($Tw != garbday, " (Delayed)", "")
> 
> REM [garbdayname] AFTER OMITFUNC _garbhol MSG Garbage[_garbdel()]
> #=======================================================================
> 
> To understand how this works, you'll need to look up the OMITFUNC clause
> and the "slide" function definition.  And translate from Canadian
> ("garbage") to American ("trash") :)
> 
> The basic idea is that the _garbhol function returns 1 if any of the
> preceding weekdays (including this one) is OMITted, and 0 otherwise.
> 
> Regards,
> 
> Dianne.


More information about the Remind-fans mailing list