[Remind-Fans] Can Someone Double-Check Me on These 'Remind' Expressions?

Paul Pelzl pelzlpj at eecs.umich.edu
Wed Aug 16 14:14:36 EDT 2006


I think the big piece you're forgetting is the BEFORE keyword.


On Wed, Aug 16, 2006 at 12:35:19PM -0400, Mike Harris wrote:
> Payday case #1:
> If the 14th of the month is not a Saturday or a Sunday, payday.  If it is, the preceding workday.

REM 14 OMIT Saturday Sunday BEFORE MSG Payday %b.%


> Payday case #2:
> If the day *before* the last day of the month is not a Saturday or Sunday, payday.  if it is, the preceding workday.

REM 1 --2 OMIT Saturday Sunday BEFORE MSG Payday %b.%

In this case you need to use "--2" so that Saturdays and Sundays are not
skipped when counting back to the second-to-last day of the month.

Paul





More information about the Remind-fans mailing list