[Remind-Fans] Mother's day in France

Gerhard Kirchmann gerhardkmn at yahoo.de
Sun Jun 17 13:13:01 EDT 2007


Hello,

here is a solution for the following problem:

On Sat, 16 Jun 2007 20:00:49 +0200 (CEST) Alain Guibert wrote:
> How to do a reminder for Mother's day in France, where its definition
> is: Last Sunday of May, unless it's Pentecost, then first Sunday of
> June. I began with those 3:
> 
> REM [trigger(easterdate(year(today()))+49)]	MSG Pentecôte
> REM Sun [_last(May)]				MSG Fête des
> Mères (sauf si Pentecôte) REM Sun [Week_1]
> Jun				MSG Fête des Mères (si reportée)
> 


SET _pentecote easterdate(year(today()))+49
REM [trigger(_pentecote)] MSG Pentecôte
IFTRIG Sun 1 Jun -7
   IFTRIG [trigger(_pentecote)]
   ELSE
      MSG Fête des Mère
   ENDIF
ENDIF
IFTRIG Sun 1 Jun
   IF [(_pentecote+7)==today()]
      MSG Fête des Mère
   ENDIF	
ENDIF 

> But don't know how to automatically select the good one for years
> where Pentecost happen on last Sunday of May (like in 2007 the 27
> May).

The previous solution is executed only once in a year for
Mother's day. This year it gives 3rd of June for Mother's day and next
year 25th of May 2008.

Gerhard Kirchmann



More information about the Remind-fans mailing list